use correct debug build flags (fix #343)

This commit is contained in:
2024-05-30 20:08:01 -06:00
parent 1249f4b21d
commit bceb8f478d

View File

@@ -70,7 +70,10 @@ env.VariantDir('#build/obj/test', 'test')
env.VariantDir('#build/obj/test/deps', 'deps')
if env['debug']:
env.Append(CCFLAGS=['-g','-o0'])
if platform in ['posix', 'darwin']:
env.Append(CCFLAGS=['-g','-O0'])
elif platform == 'win32':
env.Append(CCFLAGS=['/Zi', '/Od'])
# This command generates the header with git revision information
def gen_gitrev(env, target, source):