From 16870e1dc8a5b55d1f93c01492a6bd440ade35e9 Mon Sep 17 00:00:00 2001 From: "mark@chromium.org" Date: Tue, 25 Aug 2009 21:26:58 +0000 Subject: Build Mac Breakpad dump_syms at -O0 to avoid a crash. Review URL: http://codereview.chromium.org/174450 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24329 0039d316-1c4b-4281-b951-d872f2087c98 --- breakpad/breakpad.gyp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'breakpad/breakpad.gyp') diff --git a/breakpad/breakpad.gyp b/breakpad/breakpad.gyp index 1fc1440..6312200 100644 --- a/breakpad/breakpad.gyp +++ b/breakpad/breakpad.gyp @@ -112,7 +112,18 @@ 'libraries': [ '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', ], - } + }, + 'configurations': { + 'Release': { + 'xcode_settings': { + # dump_syms crashes when built at -O1, -O2, and -O3. It does + # not crash at -Os. To play it safe, dump_syms is always built + # at -O0 until this can be sorted out. + # TODO(mark): Sort it out. + 'GCC_OPTIMIZATION_LEVEL': '0', # -O0 + }, + }, + }, }, { 'target_name': 'symupload', -- cgit v1.1