From: Christian Dywan Date: Sat, 1 May 2010 21:51:44 +0000 (+0200) Subject: Disable cast checks and assertions if 'debug' is 'none' X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=05dd4b963af08f5fbbcb8b17fd0283aa60f5f37c;p=midori Disable cast checks and assertions if 'debug' is 'none' --- diff --git a/wscript b/wscript index e0b8f212..d101304d 100644 --- a/wscript +++ b/wscript @@ -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':