Disable cast checks and assertions if 'debug' is 'none'

This commit is contained in:
Christian Dywan 2010-05-01 23:51:44 +02:00
parent f24bc315e2
commit 05dd4b963a

View file

@ -303,7 +303,7 @@ def configure (conf):
if 'CCFLAGS' in os.environ:
conf.env.append_value ('CCFLAGS', os.environ['CCFLAGS'].split ())
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':
conf.env.append_value ('CCFLAGS', '-Wall -O0 -g'.split ())
elif debug_level == 'full':