compile with -DDEBUG when using --debugging sconscript flag
This commit is contained in:
parent
66aeb84354
commit
1daeca781e
@ -448,6 +448,7 @@ if GetOption('debugging'):
|
|||||||
env.Append(CCFLAGS=['/MDd'])
|
env.Append(CCFLAGS=['/MDd'])
|
||||||
else:
|
else:
|
||||||
env.Append(CCFLAGS=['-Wall', '-g'])
|
env.Append(CCFLAGS=['-Wall', '-g'])
|
||||||
|
env.Append(CPPDEFINES=['DEBUG'])
|
||||||
elif GetOption('release'):
|
elif GetOption('release'):
|
||||||
if msvc:
|
if msvc:
|
||||||
env.Append(CCFLAGS=['/O2', '/fp:fast'])
|
env.Append(CCFLAGS=['/O2', '/fp:fast'])
|
||||||
|
Reference in New Issue
Block a user