scons: explicitly disable compiler optimization for debug build

This commit is contained in:
punkrockguy318 2013-04-12 17:26:08 +00:00
parent 43c849cc68
commit 1478ebebeb
1 changed files with 1 additions and 1 deletions

View File

@ -174,7 +174,7 @@ print "base CPPDEFINES:",env['CPPDEFINES']
print "base CCFLAGS:",env['CCFLAGS'] print "base CCFLAGS:",env['CCFLAGS']
if env['DEBUG']: if env['DEBUG']:
env.Append(CPPDEFINES=["_DEBUG"], CCFLAGS = ['-g']) env.Append(CPPDEFINES=["_DEBUG"], CCFLAGS = ['-g', '-O0'])
else: else:
env.Append(CCFLAGS = ['-O2']) env.Append(CCFLAGS = ['-O2'])