1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

makefiles/cflags.inc.mk: handle optional cflags

Handle declaring OPTIONAL_CFLAGS and blacklisting them with
OPTIONAL_CFLAGS_BLACKLIST.

This should replace checking everytime if options are supported.
This commit is contained in:
Gaëtan Harter 2019-08-28 19:40:17 +02:00
parent 866b126f36
commit 785f868ee0
No known key found for this signature in database
GPG Key ID: 76DF6BCF1B1F883B

View File

@ -70,6 +70,9 @@ ifeq (,$(filter -DDEVELHELP,$(CFLAGS)))
endif
endif
# Add the optional flags that are not architecture/toolchain blacklisted
CFLAGS += $(filter-out $(OPTIONAL_CFLAGS_BLACKLIST),$(OPTIONAL_CFLAGS))
# Default ARFLAGS for platforms which do not specify it.
# Note: make by default provides ARFLAGS=rv which we want to override
ifeq ($(origin ARFLAGS),default)