scons define a DEBUG flag

This commit is contained in:
2024-11-27 16:29:40 -06:00
committed by Celtic Minstrel
parent 2789d24936
commit 50e353426e

View File

@@ -87,9 +87,9 @@ env.VariantDir('#build/obj/test/deps', 'deps')
if not env['release']:
if platform in ['posix', 'darwin']:
env.Append(CCFLAGS=['-g','-O0'])
env.Append(CCFLAGS=['-g','-O0', '-D' 'DEBUG=1'])
elif platform == 'win32':
env.Append(CCFLAGS=['/Zi', '/Od'])
env.Append(CCFLAGS=['/Zi', '/Od', '/D', 'DEBUG=1'])
env.Append(LINKFLAGS=['/DEBUG'])
# This command generates the header with git revision information