Added -DNDEBUG to disable the real ASSERT macro in production code (#67)

Co-authored-by: Tony Kuker <akuker@gmail.com>
This commit is contained in:
akuker 2020-12-28 18:53:00 -06:00 committed by GitHub
parent d63b27f7d1
commit 3536e8aa02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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