From de21a164ea360edcca4a76c8cbb6774f0bf7adb0 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Mon, 3 Mar 2014 12:35:52 +0800 Subject: [PATCH] Build with -g on Linux. --- common.gypi | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/common.gypi b/common.gypi index 984c1dd8..116dce15 100644 --- a/common.gypi +++ b/common.gypi @@ -244,5 +244,24 @@ }, }, }], # OS=="mac" + # The breakpad on Linux needs the binary to be built with -g to generate + # unmangled symbols. + ['OS=="linux"', { + 'target_defaults': { + 'cflags': [ '-g' ], + 'conditions': [ + ['target_arch=="ia32"', { + 'target_conditions': [ + ['_toolset=="target"', { + 'ldflags': [ + # Workaround for linker OOM. + '-Wl,--no-keep-memory', + ], + }], + ], + }], + ], + }, + }], ], } -- 2.43.0