summaryrefslogtreecommitdiffstats
path: root/scons/gallium.py
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2009-05-07 08:00:42 +0100
committerKeith Whitwell <[email protected]>2009-05-08 10:04:13 +0100
commit5f5181021e50e830bc4a88cfd3f5249ad962619b (patch)
treecbe5e08af30170e7b525054493c083d0818cf40c /scons/gallium.py
parent48c7aa2648877efab4aac45b50ee2a4c79178536 (diff)
scons: mingw is broken with -O1 and higher
Diffstat (limited to 'scons/gallium.py')
-rw-r--r--scons/gallium.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/scons/gallium.py b/scons/gallium.py
index 696ddd025ff..c7e74d7e599 100644
--- a/scons/gallium.py
+++ b/scons/gallium.py
@@ -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']: