make: enable assert only if DEVELHELP is set
This commit is contained in:
parent
a1633d8c29
commit
1f9e69af1b
@ -55,6 +55,10 @@ CFLAGS += -fno-common
|
|||||||
# Enable all default warnings
|
# Enable all default warnings
|
||||||
CFLAGS += -Wall
|
CFLAGS += -Wall
|
||||||
|
|
||||||
|
ifeq (,$(filter -DDEVELHELP,$(CFLAGS)))
|
||||||
|
CFLAGS += -DNDEBUG
|
||||||
|
endif
|
||||||
|
|
||||||
# Default ARFLAGS for platforms which do not specify it.
|
# Default ARFLAGS for platforms which do not specify it.
|
||||||
# Note: make by default provides ARFLAGS=rv which we want to override
|
# Note: make by default provides ARFLAGS=rv which we want to override
|
||||||
ifeq ($(origin ARFLAGS),default)
|
ifeq ($(origin ARFLAGS),default)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user