mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-01 03:10:09 +01:00
scons: mingw is broken with -O1 and higher
This commit is contained in:
parent
ee79827186
commit
222d7841e9
2 changed files with 4 additions and 0 deletions
|
|
@ -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']:
|
||||
|
|
|
|||
|
|
@ -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']:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue