1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-07-04 18:29:40 +00:00

Ensures NDEBUG is set for release builds.

This commit is contained in:
Thomas Harte 2018-05-09 22:27:57 -04:00
parent 25f7e3af31
commit 578a5b3e69
2 changed files with 2 additions and 1 deletions

View File

@ -4226,6 +4226,7 @@
"$(inherited)",
"$(USER_LIBRARY_DIR)/Frameworks",
);
GCC_PREPROCESSOR_DEFINITIONS = "NDEBUG=1";
GCC_TREAT_IMPLICIT_FUNCTION_DECLARATIONS_AS_ERRORS = YES;
GCC_TREAT_INCOMPATIBLE_POINTER_TYPE_WARNINGS_AS_ERRORS = YES;
GCC_WARN_ABOUT_MISSING_NEWLINE = YES;

View File

@ -89,7 +89,7 @@ SOURCES += glob.glob('../../Storage/Tape/Formats/*.cpp')
SOURCES += glob.glob('../../Storage/Tape/Parsers/*.cpp')
# add additional compiler flags
env.Append(CCFLAGS = ['--std=c++11', '-Wall', '-O3'])
env.Append(CCFLAGS = ['--std=c++11', '-Wall', '-O3', '-DNDEBUG'])
# add additional libraries to link against
env.Append(LIBS = ['libz', 'pthread', 'GL'])