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.
This commit is contained in:
Brian Paul
2011-08-25 16:50:56 -06:00
parent 3d1af78fdc
commit cdb7396390
3 changed files with 47 additions and 0 deletions
+5
View File
@@ -74,6 +74,11 @@ if env['platform'] != 'winddk':
else:
pass
if env['toolchain'] == 'crossmingw':
# compile these files without -gstabs option
glapi_sources = env.compile_without_gstabs(glapi_sources, "glapi_dispatch.c")
glapi_sources = env.compile_without_gstabs(glapi_sources, "glapi_getproc.c")
glapi = env.ConvenienceLibrary(
target = 'glapi',
source = glapi_sources,