mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
makefiles/cflags.inc.mk: move excluded patterns out of conditional
The excluded patterns can always be defined as they only set `CFLAGS` that should not be passed to `CXX`. This prepares for replacing the cflags support detection by a function.
This commit is contained in:
parent
be2169d587
commit
a71ef652e7
@ -39,11 +39,11 @@ endif
|
||||
ifeq ($(shell $(CC) -Wstrict-prototypes -Werror=strict-prototypes -Wold-style-definition -Werror=old-style-definition -E - 2>/dev/null >/dev/null </dev/null ; echo $$?),0)
|
||||
# duplicated parameters don't hurt
|
||||
CFLAGS += -Wstrict-prototypes -Wold-style-definition
|
||||
CXXUWFLAGS += -Wstrict-prototypes -Wold-style-definition
|
||||
endif
|
||||
|
||||
# Unwanted flags for c++
|
||||
CXXUWFLAGS += -std=%
|
||||
CXXUWFLAGS += -Wstrict-prototypes -Wold-style-definition
|
||||
|
||||
ifeq ($(LTO),1)
|
||||
$(warning Building with Link-Time-Optimizations is currently an experimental feature. Expect broken binaries.)
|
||||
|
Loading…
Reference in New Issue
Block a user