Commit f19d1fae authored by Daniel Verkamp's avatar Daniel Verkamp
Browse files

build: disable assert() when building for release



Set -DNDEBUG to make assert() a no-op.  Since nvme_assert() is just an
alias for assert(), this controls compilation of nvme_assert as well.

Change-Id: Ie9d0c7fea007eff030179c1b54865adc3dcaf6b6
Signed-off-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
parent 736ec496
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -53,7 +53,7 @@ endif
ifeq ($(CONFIG_DEBUG), y)
COMMON_CFLAGS += -DDEBUG -O0
else
COMMON_CFLAGS += -O2
COMMON_CFLAGS += -DNDEBUG -O2
endif

CFLAGS   += $(COMMON_CFLAGS) -Wno-pointer-sign -std=gnu11