diff options
author | Brian Paul <[email protected]> | 2011-08-25 16:50:56 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2011-08-26 08:05:36 -0600 |
commit | cdb7396390b0afffc0d33c9aba2898012802e6d0 (patch) | |
tree | 2cb735b00ff543b3d09c9d32b75c6b61e7b79f28 /src/gallium | |
parent | 3d1af78fdc4319b04f9cf324106f127b498b962d (diff) |
scons: don't compile some files with -gstabs if using mingw32
Compiling some (large) files with i686-pc-mingw32-gcc 4.2.2 (at least)
and the -gstabs option triggers a compiler error. Use this work-around
to simply compile the effected files without -gstabs.
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/auxiliary/SConscript | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/SConscript b/src/gallium/auxiliary/SConscript index e00040d97ab..07c420e138d 100644 --- a/src/gallium/auxiliary/SConscript +++ b/src/gallium/auxiliary/SConscript @@ -58,6 +58,10 @@ if env['llvm']: 'GALLIVM_CPP_SOURCES' ]) + if env['toolchain'] == 'crossmingw': + # compile lp_bld_misc.cpp without -gstabs option + source = env.compile_without_gstabs(source, "gallivm/lp_bld_misc.cpp") + gallium = env.ConvenienceLibrary( target = 'gallium', source = source, |