From: José Fonseca Date: Mon, 12 Sep 2011 16:23:47 +0000 (+0100) Subject: scons: Don't use gstabs on mingw-64. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fb5995cf53000af3bd32ca6effb4b08c4aaffe17;p=mesa.git scons: Don't use gstabs on mingw-64. --- diff --git a/scons/crossmingw.py b/scons/crossmingw.py index 893002f64a9..23c56c0a2da 100644 --- a/scons/crossmingw.py +++ b/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')