Added -DNDEBUG to disable the real ASSERT macro in production code

This commit is contained in:
Tony Kuker 2020-12-27 16:02:49 -06:00
parent 5ba4f0183c
commit 9700885657

View File

@ -26,8 +26,8 @@ ifeq ($(DEBUG), 1)
BUILD_TYPE = Debug
else
# Release CFLAGS
CFLAGS += -O3 -Wall -Werror
CXXFLAGS += -O3 -Wall -Werror
CFLAGS += -O3 -Wall -Werror -DNDEBUG
CXXFLAGS += -O3 -Wall -Werror -DNDEBUG
BUILD_TYPE = Release
endif
CFLAGS += -iquote . -MD -MP