Kaydet (Commit) a7a893a2 authored tarafından Enrico Tröger's avatar Enrico Tröger

Set -O2 compiler flag by default for gcc

But only if no other optimization flags could be found.
üst c35dedf3
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment