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

Issue 2160653002: [iOS/GN] Fix generation of .dSYM for fat binary builds. (Closed)

Created:
4 years, 5 months ago by sdefresne
Modified:
4 years, 5 months ago
Reviewers:
Robert Sesek, brettw
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[iOS/GN] Fix generation of .dSYM for fat binary builds. When creating fat binaries, the generation of the .dSYM file need to use the fat binary and not the intermediate binaries. So for a fat build, //build/config/mac:strip_all is an empty configuration and the linker tools do not pass the flag requesting generation of the .dSYM file to linker_driver.py, instead the flags are passed when "lipo" is invoked. Fix //build/toolchain/mac/linker_driver.py to look for both "-o" and "-output" when looking for the linker output to allow wrapping "lipo" in addition to the compiler linker (as "lipo" only accept "-output" flag to specify the output file). Always add //build/config/mac:strip_all to the dependencies of all linkable targets on iOS (as is done on Mac) and fix cronet. BUG=593582 Committed: https://crrev.com/6e714433f6749c3664ca816d1c64a488828ef75d Cr-Commit-Position: refs/heads/master@{#406253}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Address comments. #

Patch Set 3 : Rebase and add support for save_unstripped_output. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+118 lines, -15 lines) Patch
M build/config/BUILDCONFIG.gn View 1 chunk +1 line, -1 line 0 comments Download
M build/config/ios/rules.gni View 1 2 3 chunks +34 lines, -1 line 0 comments Download
M build/config/mac/BUILD.gn View 1 2 3 chunks +21 lines, -2 lines 0 comments Download
M build/config/mac/base_rules.gni View 1 2 3 chunks +34 lines, -1 line 0 comments Download
M build/toolchain/mac/BUILD.gn View 1 2 6 chunks +19 lines, -8 lines 0 comments Download
M build/toolchain/mac/linker_driver.py View 1 2 1 chunk +9 lines, -1 line 0 comments Download
M components/cronet/ios/BUILD.gn View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 27 (19 generated)
sdefresne
Robert: please take a look as initial implementer of the .dSYM generation. I've tested this ...
4 years, 5 months ago (2016-07-18 15:41:19 UTC) #4
brettw
lgtm
4 years, 5 months ago (2016-07-18 17:53:38 UTC) #7
Robert Sesek
Nifty, glad this was easy to hook up. https://codereview.chromium.org/2160653002/diff/1/build/config/mac/BUILD.gn File build/config/mac/BUILD.gn (right): https://codereview.chromium.org/2160653002/diff/1/build/config/mac/BUILD.gn#newcode107 build/config/mac/BUILD.gn:107: if ...
4 years, 5 months ago (2016-07-18 20:09:43 UTC) #8
sdefresne
Robert, thank you for the quick review. Could you take another look? https://codereview.chromium.org/2160653002/diff/1/build/config/mac/BUILD.gn File build/config/mac/BUILD.gn ...
4 years, 5 months ago (2016-07-19 09:12:13 UTC) #11
Robert Sesek
LGTM
4 years, 5 months ago (2016-07-19 12:09:03 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2160653002/60001
4 years, 5 months ago (2016-07-19 12:38:13 UTC) #24
commit-bot: I haz the power
Committed patchset #3 (id:60001)
4 years, 5 months ago (2016-07-19 12:42:15 UTC) #25
commit-bot: I haz the power
4 years, 5 months ago (2016-07-19 12:43:59 UTC) #27
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/6e714433f6749c3664ca816d1c64a488828ef75d
Cr-Commit-Position: refs/heads/master@{#406253}

Powered by Google App Engine
This is Rietveld 408576698