scons: mingw is broken with -O1 and higher

This commit is contained in:
Keith Whitwell 2009-05-07 08:00:42 +01:00
parent ee79827186
commit 222d7841e9
2 changed files with 4 additions and 0 deletions

View File

@ -317,6 +317,8 @@ def generate(env):
if gcc:
if debug:
cflags += ['-O0', '-g3']
elif env['toolchain'] == 'crossmingw':
cflags += ['-O0', '-g3'] # mingw 4.2.1 optimizer is broken
else:
cflags += ['-O3', '-g3']
if env['profile']:

View File

@ -398,6 +398,8 @@ def generate(env):
if gcc:
if debug:
ccflags += ['-O0', '-g3']
elif env['toolchain'] == 'crossmingw':
ccflags += ['-O0', '-g3'] # mingw 4.2.1 optimizer is broken
else:
ccflags += ['-O3', '-g0']
if env['profile']: