DNDEBUG is set for release build. Assertions are skipped now in release build.

This commit is contained in:
Dennis Luxen 2010-08-25 07:56:25 +00:00
parent a9b76e8050
commit dc889cfe80

View File

@ -32,7 +32,7 @@ else: #Mac OS X
if GetOption('buildconfiguration') == 'debug': if GetOption('buildconfiguration') == 'debug':
env.Append(CCFLAGS = ' -g3') env.Append(CCFLAGS = ' -g3')
else: else:
env.Append(CCFLAGS = ' -O3') env.Append(CCFLAGS = ' -O3 -DNDEBUG')
#print "Compiling with: ", env['CXX'] #print "Compiling with: ", env['CXX']
conf = Configure(env) conf = Configure(env)
if not conf.CheckCXX(): if not conf.CheckCXX():