mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Makefile.cflags: Make LTO a warning instead of info
(fixes problems with info-boards-supported etc)
This commit is contained in:
parent
5f313898bf
commit
0ff7652bd6
@ -42,10 +42,9 @@ endif
|
||||
# Unwanted flags for c++
|
||||
CXXUWFLAGS += -std=%
|
||||
|
||||
ifeq ($(LTO),yes)
|
||||
$(info Building with Link-Time-Optimizations is currently an experimental feature. Expect broken binaries.)
|
||||
LTOFLAGS = -flto -ffat-lto-objects
|
||||
CFLAGS += ${LTOFLAGS}
|
||||
ifeq ($(LTO),1)
|
||||
$(warning Building with Link-Time-Optimizations is currently an experimental feature. Expect broken binaries.)
|
||||
LTOFLAGS = -flto
|
||||
LINKFLAGS += ${LTOFLAGS}
|
||||
endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user