make: enable assert only if DEVELHELP is set

This commit is contained in:
Oleg Hahm 2015-07-22 15:30:08 +02:00
parent a1633d8c29
commit 1f9e69af1b
1 changed files with 4 additions and 0 deletions

View File

@ -55,6 +55,10 @@ CFLAGS += -fno-common
# Enable all default warnings
CFLAGS += -Wall
ifeq (,$(filter -DDEVELHELP,$(CFLAGS)))
CFLAGS += -DNDEBUG
endif
# 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)