aboutsummaryrefslogtreecommitdiff
path: root/mesalib/scons/crossmingw.py
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2011-09-14 14:47:07 +0200
committermarha <marha@users.sourceforge.net>2011-09-14 14:47:07 +0200
commite066f54c99aecce620158fe7f31589242df55677 (patch)
treef914574daeee09dafd33fa910d9c05cb2bdc7a3d /mesalib/scons/crossmingw.py
parent49659ef96348cc1bb20813abf7578acdb3cfe3d1 (diff)
downloadvcxsrv-e066f54c99aecce620158fe7f31589242df55677.tar.gz
vcxsrv-e066f54c99aecce620158fe7f31589242df55677.tar.bz2
vcxsrv-e066f54c99aecce620158fe7f31589242df55677.zip
mesa git update 14 sep 2011
Diffstat (limited to 'mesalib/scons/crossmingw.py')
-rw-r--r--mesalib/scons/crossmingw.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/mesalib/scons/crossmingw.py b/mesalib/scons/crossmingw.py
index 893002f64..23c56c0a2 100644
--- a/mesalib/scons/crossmingw.py
+++ b/mesalib/scons/crossmingw.py
@@ -221,9 +221,11 @@ def generate(env):
env['LIBPREFIXES'] = [ 'lib', '' ]
env['LIBSUFFIXES'] = [ '.a', '.lib' ]
- # MinGW port of gdb does not handle well dwarf debug info which is the
- # default in recent gcc versions
- env.AppendUnique(CCFLAGS = ['-gstabs'])
+ # MinGW x86 port of gdb does not handle well dwarf debug info which is the
+ # default in recent gcc versions. The x64 port gdb from mingw-w64 seems to
+ # handle it fine though, so stick with the default there.
+ if env['machine'] != 'x86_64':
+ env.AppendUnique(CCFLAGS = ['-gstabs'])
env.AddMethod(compile_without_gstabs, 'compile_without_gstabs')