[geany/geany] 11d0d5: Merge pull request #519 from techee/cxx_o2

Enrico Tröger git-noreply at xxxxx
Wed Jul 1 18:42:12 UTC 2015


Branch:      refs/heads/master
Author:      Enrico Tröger <enrico.troeger at uvena.de>
Committer:   Enrico Tröger <enrico.troeger at uvena.de>
Date:        Wed, 01 Jul 2015 18:42:12 UTC
Commit:      11d0d54552aa3565c88db646169a13405b6692aa
             https://github.com/geany/geany/commit/11d0d54552aa3565c88db646169a13405b6692aa

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


More information about the Commits mailing list