1
0
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:
Joakim Nohlgård 2018-06-14 23:38:36 +02:00 committed by Gaëtan Harter
parent be2169d587
commit a71ef652e7
No known key found for this signature in database
GPG Key ID: 76DF6BCF1B1F883B

View File

@ -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.)