Branch: refs/heads/master Author: Enrico Tröger enrico.troeger@uvena.de Committer: Enrico Tröger enrico.troeger@uvena.de Date: Wed, 01 Jul 2015 18:42:12 UTC Commit: 11d0d54552aa3565c88db646169a13405b6692aa https://github.com/geany/geany/commit/11d0d54552aa3565c88db646169a13405b6692...
Log Message: ----------- Merge pull request #519 from techee/cxx_o2
Add -O2 flag 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).