summaryrefslogtreecommitdiffstats
path: root/scons/generic.py
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2009-05-07 08:00:42 +0100
committerKeith Whitwell <[email protected]>2009-05-08 14:57:30 +0100
commit222d7841e939d13bf29148c0cba5c7513050fa1e (patch)
tree8f571e3d0b3b482b47bba604a43b447b6d42763f /scons/generic.py
parentee7982718685cd2398a895caf5e7cd90b6ee12f9 (diff)
scons: mingw is broken with -O1 and higher
Diffstat (limited to 'scons/generic.py')
-rw-r--r--scons/generic.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/scons/generic.py b/scons/generic.py
index 03563e4c620..29ddf76d6ff 100644
--- a/scons/generic.py
+++ b/scons/generic.py
@@ -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']: