Define NDEBUG for non-debug builds

This commit is contained in:
Brian Cox 2017-04-12 22:42:49 -07:00
parent 8ba032c424
commit fdb25ca903
2 changed files with 6 additions and 0 deletions

4
configure vendored
View File

@ -3499,6 +3499,10 @@ then
$as_echo "#define DEBUG 1" >>confdefs.h
else
$as_echo "#define NDEBUG 1" >>confdefs.h
fi
ac_ext=c

View File

@ -40,6 +40,8 @@ then
CFLAGS="${CFLAGS} -g"
CXXFLAGS="${CXXFLAGS} -g"
AC_DEFINE(DEBUG, 1, [Compile with debug code])
else
AC_DEFINE(NDEBUG, 1, [Compile without debug code])
fi
dnl ###################