| Index: build/common.gypi
|
| diff --git a/build/common.gypi b/build/common.gypi
|
| index 8e48115a01d20f9fe91015a39b49b502f36dc59e..9ba5372d9917fd6a2fa0aef07745ff38659488f5 100644
|
| --- a/build/common.gypi
|
| +++ b/build/common.gypi
|
| @@ -1186,6 +1186,14 @@
|
| 'binutils_version%': 0,
|
| 'binutils_dir%': '',
|
|
|
| + # Set this to false will disable debug fission for debug builds.
|
| + # Needed if your tooling (distcc, ccache) is too old for debug fission
|
| + # support or you want to use an older gdb.
|
| + # See https://code.google.com/p/chromium/issues/detail?id=352046 and
|
| + # http://gcc.gnu.org/wiki/DebugFission for more information on debug
|
| + # fission.
|
| + 'debug_fission%': 1,
|
| +
|
| # Enable TCMalloc.
|
| # TODO(dmikurube): Change Linux default of use_allocator to "tcmalloc".
|
| # TODO(dmikurube): Change Android default of use_allocator to "none".
|
| @@ -3205,7 +3213,7 @@
|
| }],
|
| # http://gcc.gnu.org/wiki/DebugFission
|
| # Requires gold and gcc >= 4.8 or clang.
|
| - ['linux_use_gold_flags==1 and (clang==1 or gcc_version>=48) and binutils_version>=223', {
|
| + ['linux_use_gold_flags==1 and (clang==1 or gcc_version>=48) and binutils_version>=223 and debug_fission==1', {
|
| 'cflags': ['-gsplit-dwarf'],
|
| 'ldflags': ['-Wl,--gdb-index'],
|
| }],
|
|
|