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.
This commit is contained in:
Sebastian Andrzej Siewior 2009-04-17 03:56:10 +02:00 committed by Christian Dywan
parent 8aaa4d7c19
commit b8f9571783

View file

@ -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)