]> spindle.queued.net Git - midori/commitdiff
Don't add optimization flags for "--debug-level none"
authorSebastian Andrzej Siewior <sebastian@breakpoint.cc>
Fri, 17 Apr 2009 01:56:10 +0000 (03:56 +0200)
committerChristian Dywan <christian@twotoasts.de>
Fri, 17 Apr 2009 01:56:10 +0000 (03:56 +0200)
Choosing 'none' now means no changes to CFLAGS whilst the 'debug'
and 'full' still add optimizations among other options because
they can have a significant effect on generated code.

wscript

diff --git a/wscript b/wscript
index 51210817f7a65f5df65cad1857b2d1df6178a5c4..6f85c11d4feda361f94ba1d230a1466eb8fdb28a 100644 (file)
--- a/wscript
+++ b/wscript
@@ -201,8 +201,6 @@ def configure (conf):
                 '-Winit-self -Wmissing-include-dirs -Wundef '
                 '-Wmissing-format-attribute -Wnested-externs '
                 '-DG_ENABLE_DEBUG'.split ())
-        else:
-            conf.env.append_value ('CCFLAGS', '-O2')
     elif debug_level != 'none':
             Utils.pprint ('RED', 'No debugging level support for ' + compiler)
             sys.exit (1)