From 05dd4b963af08f5fbbcb8b17fd0283aa60f5f37c Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sat, 1 May 2010 23:51:44 +0200 Subject: [PATCH] Disable cast checks and assertions if 'debug' is 'none' --- wscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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': -- 2.39.5