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:
parent
866b126f36
commit
785f868ee0
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user