summaryrefslogtreecommitdiffstats
path: root/src/mapi
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2011-08-25 16:50:56 -0600
committerBrian Paul <[email protected]>2011-08-26 08:05:36 -0600
commitcdb7396390b0afffc0d33c9aba2898012802e6d0 (patch)
tree2cb735b00ff543b3d09c9d32b75c6b61e7b79f28 /src/mapi
parent3d1af78fdc4319b04f9cf324106f127b498b962d (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/mapi')
-rw-r--r--src/mapi/glapi/SConscript5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mapi/glapi/SConscript b/src/mapi/glapi/SConscript
index a7764745eda..fdd65790013 100644
--- a/src/mapi/glapi/SConscript
+++ b/src/mapi/glapi/SConscript
@@ -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,