Index: build/common.gypi |
diff --git a/build/common.gypi b/build/common.gypi |
index d21c0f3b7bc9ef8a03ad7de835e265155cee8ea8..bb8f80dbcbfb2a986ef3167e9f11449197fd26e7 100644 |
--- a/build/common.gypi |
+++ b/build/common.gypi |
@@ -1299,12 +1299,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)', |
@@ -3083,6 +3086,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', { |
+ 'cflags': ['-gsplit-dwarf'], |
+ 'ldflags': ['-Wl,--gdb-index'], |
Nico
2014/03/17 09:07:38
Is there some way we can get this to pick up all t
mithro-old
2014/03/17 10:36:21
See https://codereview.chromium.org/196573022/ whi
|
+ }], |
], |
}, |
'Release_Base': { |