From b8f957178366d9564f23a0f9b4c482dec70695ae Mon Sep 17 00:00:00 2001 From: Sebastian Andrzej Siewior Date: Fri, 17 Apr 2009 03:56:10 +0200 Subject: [PATCH] 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. --- wscript | 2 -- 1 file changed, 2 deletions(-) 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) -- 2.39.5