[geany/geany] 891997: Add -O2 -g flags also for C++ files when building with waf

Jiří Techet git-noreply at xxxxx
Thu Jun 18 08:28:02 UTC 2015


Branch:      refs/heads/master
Author:      Jiří Techet <techet at gmail.com>
Committer:   Jiří Techet <techet at gmail.com>
Date:        Thu, 18 Jun 2015 08:28:02 UTC
Commit:      891997a5bf55f50d2ded04dbbd9b09f517d26b84
             https://github.com/geany/geany/commit/891997a5bf55f50d2ded04dbbd9b09f517d26b84

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


More information about the Commits mailing list