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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user