summaryrefslogtreecommitdiffstats
path: root/scons/generic.py
diff options
context:
space:
mode:
authorAlex Deucher <[email protected]>2009-06-12 12:09:34 -0400
committerAlex Deucher <[email protected]>2009-06-12 12:09:34 -0400
commit1036ef2bf468611d37b5df06fc4424f2002e3837 (patch)
treef0859a6d903c2570a0a00c918da88139f8f7d065 /scons/generic.py
parent917f8bc1a85e61311cef6478127b387df70fba14 (diff)
parent1cd0afffc9edbcac690f8ab436aecfced26b0aba (diff)
Merge master and fix conflicts
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']: