neuwld

patched neuwld library (tracked)
git clone https://git.daat.foo/neuwld.git
Log | Files | Refs | README | LICENSE

commit 2cf1a72198a0c3591df691cc6a005220a81cdb3e
parent 9aeb7258efaa2b46f0d5331152a287ccf135e954
Author: Michael Forney <mforney@mforney.org>
Date:   Tue, 14 Jan 2014 01:41:52 -0800

Makefile: Add -DNDEBUG when ENABLE_DEBUG=0 to disable assertions

Diffstat:
MMakefile | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile @@ -90,6 +90,8 @@ FINAL_CFLAGS += -Werror=implicit-function-declaration -Werror=implicit-int \ ifeq ($(ENABLE_DEBUG),1) FINAL_CPPFLAGS += -DENABLE_DEBUG=1 FINAL_CFLAGS += -g +else + FINAL_CPPFLAGS += -DNDEBUG endif compile = $(call quiet,CC) $(FINAL_CPPFLAGS) $(FINAL_CFLAGS) -c -o $@ $< \