From: Sebastian Andrzej Siewior Date: Fri, 17 Apr 2009 01:56:10 +0000 (+0200) Subject: Don't add optimization flags for "--debug-level none" X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8f957178366d9564f23a0f9b4c482dec70695ae;p=midori Don't add optimization flags for "--debug-level none" 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. --- diff --git a/wscript b/wscript index 51210817..6f85c11d 100644 --- 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)