Index: build/common.gypi |
diff --git a/build/common.gypi b/build/common.gypi |
index 72eb96d94c07528ee98e90e0bdf56958f8bef7b5..78248ddcfda68861e3e84b7d0ba7252f360f8bab 100644 |
--- a/build/common.gypi |
+++ b/build/common.gypi |
@@ -1301,12 +1301,15 @@ |
['OS=="android"', { |
# We directly set the gcc_version since we know what we use. |
'gcc_version%': 46, |
+ 'binutils_version%': 222, |
}, { |
'gcc_version%': '<!(python <(DEPTH)/build/compiler_version.py)', |
+ 'binutils_version%': '<!(python <(DEPTH)/build/compiler_version.py assembler)', |
}], |
], |
}, { |
'gcc_version%': 0, |
+ 'binutils_version%': 0, |
}], |
['OS=="win" and "<!(python <(DEPTH)/build/dir_exists.py <(windows_sdk_default_path))"=="True"', { |
'windows_sdk_path%': '<(windows_sdk_default_path)', |
@@ -3084,6 +3087,12 @@ |
}, { |
'cflags': ['-fno-unwind-tables', '-fno-asynchronous-unwind-tables'], |
}], |
+ # http://gcc.gnu.org/wiki/DebugFission |
+ # Requires gold and gcc >= 4.7 or clang. |
+ ['linux_use_gold_flags==1 and (clang==1 or gcc_version>=47) and binutils_version>=223', { |
ostap
2014/03/18 16:00:06
I have gold 1.11, binutils 2.23.2 and gcc 4.7.3 on
|
+ 'cflags': ['-gsplit-dwarf'], |
+ 'ldflags': ['-Wl,--gdb-index'], |
+ }], |
], |
}, |
'Release_Base': { |