From: Cheng Zhao Date: Mon, 3 Mar 2014 04:35:52 +0000 (+0800) Subject: Build with -g on Linux. X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=de21a164ea360edcca4a76c8cbb6774f0bf7adb0;p=electron.git Build with -g on Linux. --- 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', + ], + }], + ], + }], + ], + }, + }], ], }