diff options
author | Brian Paul <brianp@vmware.com> | 2011-08-25 16:50:56 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2011-08-26 08:05:36 -0600 |
commit | cdb7396390b0afffc0d33c9aba2898012802e6d0 (patch) | |
tree | 2cb735b00ff543b3d09c9d32b75c6b61e7b79f28 /src/mapi | |
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/mapi')
-rw-r--r-- | src/mapi/glapi/SConscript | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mapi/glapi/SConscript b/src/mapi/glapi/SConscript index a7764745ed..fdd6579001 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, |