Branch: refs/heads/master Author: Jiří Techet techet@gmail.com Committer: Jiří Techet techet@gmail.com Date: Thu, 18 Jun 2015 08:28:02 UTC Commit: 891997a5bf55f50d2ded04dbbd9b09f517d26b84 https://github.com/geany/geany/commit/891997a5bf55f50d2ded04dbbd9b09f517d26b...
Log Message: ----------- Add -O2 -g flags also for C++ files when building with waf
Modified Paths: -------------- wscript
Modified: wscript 4 lines changed, 4 insertions(+), 0 deletions(-) =================================================================== @@ -336,6 +336,10 @@ but you then may not have a local copy of the HTML manual.''' conf.env.append_value('CFLAGS', ['-DGTK']) conf.env.append_value('CXXFLAGS', ['-DNDEBUG', '-DGTK', '-DSCI_LEXER', '-DG_THREADS_IMPL_NONE']) + if conf.env['CXX_NAME'] == 'gcc' and '-O' not in ''.join(conf.env['CXXFLAGS']): + conf.env.append_value('CXXFLAGS', ['-O2']) + if revision is not None: + conf.env.append_value('CXXFLAGS', ['-g'])
# summary Logs.pprint('BLUE', 'Summary:')
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).