Disable cast checks and assertions if 'debug' is 'none'
This commit is contained in:
parent
f24bc315e2
commit
05dd4b963a
1 changed files with 1 additions and 1 deletions
2
wscript
2
wscript
|
@ -303,7 +303,7 @@ def configure (conf):
|
||||||
if 'CCFLAGS' in os.environ:
|
if 'CCFLAGS' in os.environ:
|
||||||
conf.env.append_value ('CCFLAGS', os.environ['CCFLAGS'].split ())
|
conf.env.append_value ('CCFLAGS', os.environ['CCFLAGS'].split ())
|
||||||
else:
|
else:
|
||||||
conf.env.append_value ('CCFLAGS', '-DG_DISABLE_CHECKS')
|
conf.env.append_value ('CCFLAGS', '-DG_DISABLE_CHECKS -DG_DISABLE_CAST_CHECKS -DG_DISABLE_ASSERT'.split ())
|
||||||
elif debug_level == 'debug':
|
elif debug_level == 'debug':
|
||||||
conf.env.append_value ('CCFLAGS', '-Wall -O0 -g'.split ())
|
conf.env.append_value ('CCFLAGS', '-Wall -O0 -g'.split ())
|
||||||
elif debug_level == 'full':
|
elif debug_level == 'full':
|
||||||
|
|
Loading…
Reference in a new issue