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

Issue 1999513002: [Mac/GN] Implement dSYM generation and stripping. (Closed)

Created:
4 years, 7 months ago by Robert Sesek
Modified:
4 years, 6 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/GN] Implement dSYM generation and stripping. This creates a new script called the linker driver, which runs all three steps of linking: the image link, debug info link, and stripping. In GYP, the last two steps were handled as postbuilds, but GN lacks those. Instead, the linker driver performs all three operations in one build step. BUG=330301, 431177 R=mark@chromium.org,dpranke@chromium.org Committed: https://crrev.com/b89811bd0b77ae38f45359c6d78a5e06b997e499 Cr-Commit-Position: refs/heads/master@{#397880}

Patch Set 1 #

Total comments: 26

Patch Set 2 : #

Total comments: 8

Patch Set 3 : #

Total comments: 18

Patch Set 4 : #

Patch Set 5 : Global configuration #

Total comments: 5

Patch Set 6 : Add a comment #

Total comments: 5

Patch Set 7 : Comment++ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+283 lines, -4 lines) Patch
M build/config/BUILDCONFIG.gn View 1 2 3 4 5 3 chunks +6 lines, -0 lines 0 comments Download
M build/config/mac/BUILD.gn View 1 2 3 4 5 6 2 chunks +13 lines, -0 lines 0 comments Download
M build/config/mac/rules.gni View 1 2 3 4 5 6 2 chunks +6 lines, -0 lines 0 comments Download
A build/config/mac/symbols.gni View 1 2 3 4 1 chunk +24 lines, -0 lines 0 comments Download
M build/toolchain/mac/BUILD.gn View 1 2 3 4 5 6 7 chunks +28 lines, -4 lines 0 comments Download
A build/toolchain/mac/linker_driver.py View 1 2 3 1 chunk +187 lines, -0 lines 0 comments Download
M chrome/BUILD.gn View 1 2 3 4 5 3 chunks +19 lines, -0 lines 0 comments Download

Messages

Total messages: 48 (5 generated)
Robert Sesek
Would like your collective thoughts/a pre-review on this approach. https://codereview.chromium.org/1999513002/diff/1/build/toolchain/mac/BUILD.gn File build/toolchain/mac/BUILD.gn (right): https://codereview.chromium.org/1999513002/diff/1/build/toolchain/mac/BUILD.gn#newcode174 build/toolchain/mac/BUILD.gn:174: ...
4 years, 7 months ago (2016-05-19 22:38:59 UTC) #1
Dirk Pranke
this basically lgtm, with a few tweaks. https://codereview.chromium.org/1999513002/diff/1/build/toolchain/mac/BUILD.gn File build/toolchain/mac/BUILD.gn (right): https://codereview.chromium.org/1999513002/diff/1/build/toolchain/mac/BUILD.gn#newcode142 build/toolchain/mac/BUILD.gn:142: rebase_path("//build/toolchain/mac/linker_driver.py", root_build_dir) ...
4 years, 7 months ago (2016-05-20 01:47:19 UTC) #2
Robert Sesek
https://codereview.chromium.org/1999513002/diff/1/build/toolchain/mac/BUILD.gn File build/toolchain/mac/BUILD.gn (right): https://codereview.chromium.org/1999513002/diff/1/build/toolchain/mac/BUILD.gn#newcode142 build/toolchain/mac/BUILD.gn:142: rebase_path("//build/toolchain/mac/linker_driver.py", root_build_dir) On 2016/05/20 01:47:19, Dirk Pranke wrote: > ...
4 years, 7 months ago (2016-05-20 15:15:36 UTC) #3
Mark Mentovai
https://codereview.chromium.org/1999513002/diff/1/build/config/mac/symbols.gni File build/config/mac/symbols.gni (right): https://codereview.chromium.org/1999513002/diff/1/build/config/mac/symbols.gni#newcode23 build/config/mac/symbols.gni:23: enable_stripping = is_official_build The big problem I see here ...
4 years, 7 months ago (2016-05-20 15:42:42 UTC) #4
Dirk Pranke
https://codereview.chromium.org/1999513002/diff/1/build/toolchain/mac/BUILD.gn File build/toolchain/mac/BUILD.gn (right): https://codereview.chromium.org/1999513002/diff/1/build/toolchain/mac/BUILD.gn#newcode142 build/toolchain/mac/BUILD.gn:142: rebase_path("//build/toolchain/mac/linker_driver.py", root_build_dir) On 2016/05/20 15:15:36, Robert Sesek wrote: > ...
4 years, 7 months ago (2016-05-20 16:43:56 UTC) #5
Robert Sesek
https://codereview.chromium.org/1999513002/diff/1/build/config/mac/symbols.gni File build/config/mac/symbols.gni (right): https://codereview.chromium.org/1999513002/diff/1/build/config/mac/symbols.gni#newcode23 build/config/mac/symbols.gni:23: enable_stripping = is_official_build On 2016/05/20 15:42:41, Mark Mentovai wrote: ...
4 years, 7 months ago (2016-05-20 19:09:56 UTC) #7
Mark Mentovai
Mostly LG https://codereview.chromium.org/1999513002/diff/20001/build/toolchain/mac/linker_driver.py File build/toolchain/mac/linker_driver.py (right): https://codereview.chromium.org/1999513002/diff/20001/build/toolchain/mac/linker_driver.py#newcode143 build/toolchain/mac/linker_driver.py:143: argument list. As this is a required ...
4 years, 7 months ago (2016-05-20 19:41:12 UTC) #8
Robert Sesek
https://codereview.chromium.org/1999513002/diff/1/build/toolchain/mac/BUILD.gn File build/toolchain/mac/BUILD.gn (right): https://codereview.chromium.org/1999513002/diff/1/build/toolchain/mac/BUILD.gn#newcode174 build/toolchain/mac/BUILD.gn:174: outputs = [ On 2016/05/20 16:43:55, Dirk Pranke wrote: ...
4 years, 7 months ago (2016-05-24 15:05:33 UTC) #9
Mark Mentovai
https://codereview.chromium.org/1999513002/diff/1/build/toolchain/mac/BUILD.gn File build/toolchain/mac/BUILD.gn (right): https://codereview.chromium.org/1999513002/diff/1/build/toolchain/mac/BUILD.gn#newcode174 build/toolchain/mac/BUILD.gn:174: outputs = [ On 2016/05/24 15:05:32, Robert Sesek wrote: ...
4 years, 7 months ago (2016-05-24 18:24:32 UTC) #10
Robert Sesek
https://codereview.chromium.org/1999513002/diff/1/build/toolchain/mac/BUILD.gn File build/toolchain/mac/BUILD.gn (right): https://codereview.chromium.org/1999513002/diff/1/build/toolchain/mac/BUILD.gn#newcode174 build/toolchain/mac/BUILD.gn:174: outputs = [ On 2016/05/24 18:24:32, Mark Mentovai wrote: ...
4 years, 7 months ago (2016-05-24 18:28:23 UTC) #11
Dirk Pranke
I think rsesek@ and I chatted about this offline, but I think we should probably ...
4 years, 7 months ago (2016-05-24 18:35:05 UTC) #12
Mark Mentovai
Does that mean that you need to make a pair of targets for everything that ...
4 years, 7 months ago (2016-05-24 18:36:32 UTC) #13
Dirk Pranke
On 2016/05/24 18:36:32, Mark Mentovai wrote: > Does that mean that you need to make ...
4 years, 7 months ago (2016-05-24 18:39:38 UTC) #14
Mark Mentovai
That sucks, then. We’ve got a handful of things that we ship and thus need ...
4 years, 7 months ago (2016-05-24 18:42:19 UTC) #15
Robert Sesek
I'm not a fan of that either, because most of the things that we need ...
4 years, 7 months ago (2016-05-24 18:43:32 UTC) #16
Dirk Pranke
On 2016/05/24 18:42:19, Mark Mentovai wrote: > That sucks, then. We’ve got a handful of ...
4 years, 7 months ago (2016-05-24 18:51:17 UTC) #17
Dirk Pranke
On 2016/05/24 18:43:32, Robert Sesek wrote: > I'm not a fan of that either, because ...
4 years, 7 months ago (2016-05-24 18:52:06 UTC) #18
Mark Mentovai
Dirk Pranke wrote: > On 2016/05/24 18:42:19, Mark Mentovai wrote: > > That sucks, then. ...
4 years, 7 months ago (2016-05-24 18:53:33 UTC) #19
Dirk Pranke
On 2016/05/24 18:53:33, Mark Mentovai wrote: > Dirk Pranke wrote: > > On 2016/05/24 18:42:19, ...
4 years, 7 months ago (2016-05-24 19:01:19 UTC) #20
Robert Sesek
On 2016/05/24 19:01:19, Dirk Pranke wrote: > On 2016/05/24 18:53:33, Mark Mentovai wrote: > > ...
4 years, 7 months ago (2016-05-24 19:03:57 UTC) #21
Dirk Pranke
On 2016/05/24 19:03:57, Robert Sesek wrote: > On 2016/05/24 19:01:19, Dirk Pranke wrote: > > ...
4 years, 7 months ago (2016-05-24 19:06:51 UTC) #22
Mark Mentovai
Dirk Pranke wrote: > If you want official builds to have every executable generate dSYMS ...
4 years, 7 months ago (2016-05-24 19:07:49 UTC) #23
Robert Sesek
On 2016/05/24 19:06:51, Dirk Pranke wrote: > On 2016/05/24 19:03:57, Robert Sesek wrote: > > ...
4 years, 7 months ago (2016-05-24 19:25:20 UTC) #24
Dirk Pranke
On 2016/05/24 19:07:49, Mark Mentovai wrote: > Dirk Pranke wrote: > > If you want ...
4 years, 7 months ago (2016-05-24 19:26:49 UTC) #25
Dirk Pranke
On 2016/05/24 19:25:20, Robert Sesek wrote: > On 2016/05/24 19:06:51, Dirk Pranke wrote: > > ...
4 years, 7 months ago (2016-05-24 19:35:50 UTC) #26
Mark Mentovai
OK. Then I’ll describe the baseline requirements, and maybe this will be an opportunity to ...
4 years, 7 months ago (2016-05-24 20:18:14 UTC) #27
Dirk Pranke
Is there any particular need to strip and generating dSYMs for any target other than ...
4 years, 7 months ago (2016-05-25 04:53:16 UTC) #28
Mark Mentovai
Yes. crashpad_handler, Google Chrome Framework, Widevine CDM, liblzma and xzdec are others. Most of these ...
4 years, 7 months ago (2016-05-25 05:07:38 UTC) #29
Dirk Pranke
On 2016/05/25 05:07:38, Mark Mentovai wrote: > Yes. crashpad_handler, Google Chrome Framework, Widevine CDM, liblzma ...
4 years, 7 months ago (2016-05-25 05:32:28 UTC) #30
Robert Sesek
On 2016/05/25 05:32:28, Dirk Pranke (slow) wrote: > On 2016/05/25 05:07:38, Mark Mentovai wrote: > ...
4 years, 7 months ago (2016-05-25 15:07:05 UTC) #31
Mark Mentovai
I think we can live with that.
4 years, 7 months ago (2016-05-25 15:36:06 UTC) #32
Dirk Pranke
The morning has not presented me with any better ideas, so I think that's probably ...
4 years, 7 months ago (2016-05-25 15:49:45 UTC) #33
Robert Sesek
I've reworked this CL to do what we discussed above, which is to always produce ...
4 years, 6 months ago (2016-05-31 17:10:59 UTC) #34
Mark Mentovai
LGTM
4 years, 6 months ago (2016-05-31 17:14:30 UTC) #35
Dirk Pranke
lgtm w/ a couple of suggestions. You'll also need brettw@'s review for the changes to ...
4 years, 6 months ago (2016-05-31 19:58:19 UTC) #37
Robert Sesek
https://codereview.chromium.org/1999513002/diff/100001/build/config/BUILDCONFIG.gn File build/config/BUILDCONFIG.gn (right): https://codereview.chromium.org/1999513002/diff/100001/build/config/BUILDCONFIG.gn#newcode512 build/config/BUILDCONFIG.gn:512: _mac_linker_configs = [ "//build/config/mac:strip_all" ] On 2016/05/31 19:58:19, Dirk ...
4 years, 6 months ago (2016-06-01 20:21:05 UTC) #38
Robert Sesek
+brettw for build/config/BUILDCONFIG.gn
4 years, 6 months ago (2016-06-01 20:21:18 UTC) #39
Dirk Pranke
https://codereview.chromium.org/1999513002/diff/100001/build/config/BUILDCONFIG.gn File build/config/BUILDCONFIG.gn (right): https://codereview.chromium.org/1999513002/diff/100001/build/config/BUILDCONFIG.gn#newcode512 build/config/BUILDCONFIG.gn:512: _mac_linker_configs = [ "//build/config/mac:strip_all" ] On 2016/06/01 20:21:05, Robert ...
4 years, 6 months ago (2016-06-01 21:16:54 UTC) #40
brettw
LGTM with some tweaks. I reviewed the big picture and didn't look at the details ...
4 years, 6 months ago (2016-06-03 20:23:26 UTC) #41
Robert Sesek
On 2016/06/03 20:23:26, brettw wrote: > LGTM with some tweaks. I reviewed the big picture ...
4 years, 6 months ago (2016-06-03 20:46:15 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1999513002/140001
4 years, 6 months ago (2016-06-04 00:19:44 UTC) #45
commit-bot: I haz the power
Committed patchset #7 (id:140001)
4 years, 6 months ago (2016-06-04 01:23:14 UTC) #46
commit-bot: I haz the power
4 years, 6 months ago (2016-06-04 01:26:29 UTC) #48
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/b89811bd0b77ae38f45359c6d78a5e06b997e499
Cr-Commit-Position: refs/heads/master@{#397880}

Powered by Google App Engine
This is Rietveld 408576698