]> spindle.queued.net Git - midori/commitdiff
Disable cast checks and assertions if 'debug' is 'none'
authorChristian Dywan <christian@twotoasts.de>
Sat, 1 May 2010 21:51:44 +0000 (23:51 +0200)
committerChristian Dywan <christian@twotoasts.de>
Sun, 2 May 2010 09:49:32 +0000 (11:49 +0200)
wscript

diff --git a/wscript b/wscript
index e0b8f212691e893a1556203ac557ede2da7e0e73..d101304d99d00cf6dfa62d1900dc323926277358 100644 (file)
--- 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':