From: Keith Whitwell Date: Thu, 7 May 2009 07:00:42 +0000 (+0100) Subject: scons: mingw is broken with -O1 and higher X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=222d7841e939d13bf29148c0cba5c7513050fa1e;p=mesa.git scons: mingw is broken with -O1 and higher --- 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']: 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']: