From a7a893a22f15078d498ea6c61ba0a3c79aa8b85b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Enrico=20Tr=C3=B6ger?= Date: Sun, 26 Oct 2014 23:44:19 +0100 Subject: [PATCH] Set -O2 compiler flag by default for gcc But only if no other optimization flags could be found. --- wscript | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wscript b/wscript index 5f569e2b0..343b68e0a 100644 --- a/wscript +++ b/wscript @@ -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 -- 2.11.4.GIT