diff options
author | Keith Whitwell <[email protected]> | 2009-05-07 08:00:42 +0100 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2009-05-08 10:04:13 +0100 |
commit | 5f5181021e50e830bc4a88cfd3f5249ad962619b (patch) | |
tree | cbe5e08af30170e7b525054493c083d0818cf40c /scons/generic.py | |
parent | 48c7aa2648877efab4aac45b50ee2a4c79178536 (diff) |
scons: mingw is broken with -O1 and higher
Diffstat (limited to 'scons/generic.py')
-rw-r--r-- | scons/generic.py | 2 |
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']: |