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:
parent
8aaa4d7c19
commit
b8f9571783
1 changed files with 0 additions and 2 deletions
2
wscript
2
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)
|
||||
|
|
Loading…
Reference in a new issue