[geany/geany] a7a893: Set -O2 compiler flag by default for gcc
Enrico Tröger
git-noreply at xxxxx
Sun Oct 26 22:44:19 UTC 2014
Branch: refs/heads/master
Author: Enrico Tröger <enrico.troeger at uvena.de>
Committer: Enrico Tröger <enrico.troeger at uvena.de>
Date: Sun, 26 Oct 2014 22:44:19 UTC
Commit: a7a893a22f15078d498ea6c61ba0a3c79aa8b85b
https://github.com/geany/geany/commit/a7a893a22f15078d498ea6c61ba0a3c79aa8b85b
Log Message:
-----------
Set -O2 compiler flag by default for gcc
But only if no other optimization flags could be found.
Modified Paths:
--------------
wscript
Modified: wscript
2 lines changed, 2 insertions(+), 0 deletions(-)
===================================================================
@@ -302,6 +302,8 @@ but you then may not have a local copy of the HTML manual.'''
# some more compiler flags
conf.env.append_value('CFLAGS', ['-DHAVE_CONFIG_H'])
+ if conf.env['CC_NAME'] == 'gcc' and '-O' not in ''.join(conf.env['CFLAGS']):
+ conf.env.append_value('CFLAGS', ['-O2'])
if revision is not None:
conf.env.append_value('CFLAGS', ['-g', '-DGEANY_DEBUG'])
# Scintilla flags
--------------
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