fix github issue #65, don't output (N)DEBUG to options.h

This commit is contained in:
toddouska
2015-04-13 12:01:21 -07:00
parent 7e9a5fb8ee
commit ceeb3d007e

View File

@ -2000,6 +2000,12 @@ for option in $OPTION_FLAGS; do
if test "$defonly" != "$option"
then
noequalsign=`echo $defonly | sed 's/=/ /'`
if test "$noequalsign" = "NDEBUG" || test "$noequalsign" = "DEBUG"
then
echo "not outputing (N)DEBUG to $OPTION_FILE"
continue
fi
echo "#undef $noequalsign" >> $OPTION_FILE
echo "#define $noequalsign" >> $OPTION_FILE
echo "" >> $OPTION_FILE