Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(42)

Issue 1085843004: mac: Add the flag "-gline-tables-only" to reduce dSYM size. (Closed)

Created:
5 years, 8 months ago by erikchen
Modified:
5 years, 8 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

mac: Add the flag "-gline-tables-only" to reduce dSYM size. The dSYM for Google Chrome Framework has grown to be larger than 4GB. dsymutil can't handle this. Reduce the amount of debug info output for official builds of Google Chrome. On my local machine, the dSYM is 10x smaller. BUG=479841 Committed: https://crrev.com/c4fc98d94448349b8fcf3d0627a166c74caf7053 Cr-Commit-Position: refs/heads/master@{#326445}

Patch Set 1 #

Patch Set 2 : Comments from thakis. #

Total comments: 5

Patch Set 3 : Remove a newline. Because our gyp files don't appear to use newlines. #

Total comments: 2

Patch Set 4 : Comments from thakis, round two. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -0 lines) Patch
M build/common.gypi View 1 2 3 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (3 generated)
erikchen
rsesek: Please review. mark@ mentioned he would be OOO for a couple of days. This ...
5 years, 8 months ago (2015-04-23 01:01:47 UTC) #2
Nico
This makes it impossible to debug. Please only do this for official builds.
5 years, 8 months ago (2015-04-23 01:08:53 UTC) #4
Mark Mentovai
We should also work out whether there are any conditions where dsymutil does the wrong ...
5 years, 8 months ago (2015-04-23 01:13:49 UTC) #5
Mark Mentovai
Sorry, you answered part of that on the bug, but I saw it LIFO.
5 years, 8 months ago (2015-04-23 01:14:50 UTC) #6
erikchen
thakis: Done. https://codereview.chromium.org/1085843004/diff/20001/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/1085843004/diff/20001/build/common.gypi#newcode5135 build/common.gypi:5135: 'OTHER_CFLAGS': [ I don't understand GYP. I ...
5 years, 8 months ago (2015-04-23 01:20:36 UTC) #7
Nico
Looks better, but I'm afraid I have one more bike to shed: https://codereview.chromium.org/1085843004/diff/20001/build/common.gypi File build/common.gypi ...
5 years, 8 months ago (2015-04-23 01:26:24 UTC) #8
Mark Mentovai
https://codereview.chromium.org/1085843004/diff/40001/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/1085843004/diff/40001/build/common.gypi#newcode5136 build/common.gypi:5136: # The Google Chrome Framework dSYM generated by dsymutil ...
5 years, 8 months ago (2015-04-23 01:38:06 UTC) #9
erikchen
https://codereview.chromium.org/1085843004/diff/20001/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/1085843004/diff/20001/build/common.gypi#newcode5208 build/common.gypi:5208: 'DEBUG_INFORMATION_FORMAT': 'dwarf-with-dsym', On 2015/04/23 01:26:24, Nico (OOO sick) wrote: ...
5 years, 8 months ago (2015-04-23 01:56:05 UTC) #10
erikchen
https://codereview.chromium.org/1085843004/diff/20001/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/1085843004/diff/20001/build/common.gypi#newcode5135 build/common.gypi:5135: 'OTHER_CFLAGS': [ On 2015/04/23 01:26:24, Nico (OOO sick) wrote: ...
5 years, 8 months ago (2015-04-23 01:57:49 UTC) #11
Nico
On 2015/04/23 01:57:49, erikchen wrote: > https://codereview.chromium.org/1085843004/diff/20001/build/common.gypi > File build/common.gypi (right): > > https://codereview.chromium.org/1085843004/diff/20001/build/common.gypi#newcode5135 > ...
5 years, 8 months ago (2015-04-23 02:16:27 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1085843004/60001
5 years, 8 months ago (2015-04-23 02:19:10 UTC) #14
Mark Mentovai
LGTM. Feel better, Nico!
5 years, 8 months ago (2015-04-23 02:20:09 UTC) #15
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 8 months ago (2015-04-23 04:07:48 UTC) #16
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/c4fc98d94448349b8fcf3d0627a166c74caf7053 Cr-Commit-Position: refs/heads/master@{#326445}
5 years, 8 months ago (2015-04-23 04:08:49 UTC) #17
erikchen
On 2015/04/23 04:08:49, I haz the power (commit-bot) wrote: > Patchset 4 (id:??) landed as ...
5 years, 8 months ago (2015-04-23 16:58:09 UTC) #18
erikchen
On 2015/04/23 16:58:09, erikchen wrote: > On 2015/04/23 04:08:49, I haz the power (commit-bot) wrote: ...
5 years, 8 months ago (2015-04-23 17:00:24 UTC) #19
erikchen
A revert of this CL (patchset #4 id:60001) has been created in https://codereview.chromium.org/1105703002/ by erikchen@chromium.org. ...
5 years, 8 months ago (2015-04-23 18:28:12 UTC) #20
erikchen
5 years, 8 months ago (2015-04-23 19:23:30 UTC) #21
Message was sent while issue was closed.
On 2015/04/23 18:28:12, erikchen wrote:
> A revert of this CL (patchset #4 id:60001) has been created in
> https://codereview.chromium.org/1105703002/ by mailto:erikchen@chromium.org.
> 
> The reason for reverting is: Reverting this CL because it doesn't actually
> reduce the dSYM size generated by dsymutil. .

Through experimentation, it appears that two separate conditionals prevent the
binary size from getting reduced.

'mac_real_dsym == 1'

Despite its name, mac_real_dsym is only true for ASAN builds. Yay.

['(_type=="executable" or _type=="shared_library" or \
    _type=="loadable_module")', {

Powered by Google App Engine
This is Rietveld 408576698