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

Issue 1993653002: [GN] Use "xcrun" instead of "xcodebuild" to get information on SDK. (Closed)

Created:
4 years, 7 months ago by sdefresne
Modified:
4 years, 7 months ago
Reviewers:
Nico
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@fix-gn-check-ios
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[GN] Use "xcrun" instead of "xcodebuild" to get information on SDK. Use "xcrun" instead of "xcodebuild" as it is much faster and available on all version of OS X supported for building Chrome. Reduce running time of "gn gen" from 2.5 to 2.2s on MacBook Pro laptop. BUG=609541 Committed: https://crrev.com/268142df3c289fcd2605cd68f41e04ebade1067b Cr-Commit-Position: refs/heads/master@{#394505}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Fix to work with old version of Xcode #

Patch Set 3 : Follow the same logic that gyp uses #

Total comments: 1

Patch Set 4 : Add a TODO to remove check for Xcode version later #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -7 lines) Patch
M build/config/mac/sdk_info.py View 1 2 3 2 chunks +13 lines, -7 lines 0 comments Download

Messages

Total messages: 17 (7 generated)
sdefresne
Please take a look. https://codereview.chromium.org/1993653002/diff/1/build/config/mac/sdk_info.py File build/config/mac/sdk_info.py (right): https://codereview.chromium.org/1993653002/diff/1/build/config/mac/sdk_info.py#newcode25 build/config/mac/sdk_info.py:25: lines = subprocess.check_output(['xcodebuild', '-version']).splitlines() I ...
4 years, 7 months ago (2016-05-18 09:42:39 UTC) #3
Nico
Thanks! I'd mention "reduces time for running `gn gen` on mac from 2.5s to 2.2s" ...
4 years, 7 months ago (2016-05-18 11:21:06 UTC) #4
sdefresne
https://codereview.chromium.org/1993653002/diff/1/build/config/mac/sdk_info.py File build/config/mac/sdk_info.py (right): https://codereview.chromium.org/1993653002/diff/1/build/config/mac/sdk_info.py#newcode43 build/config/mac/sdk_info.py:43: 'xcrun', '-sdk', platform, '--show-sdk-build-version']).strip() On 2016/05/18 11:21:06, Nico (vacation ...
4 years, 7 months ago (2016-05-18 14:45:02 UTC) #5
Nico
I think we're talking past each other. I'm not saying remove it, I'm saying: 1. ...
4 years, 7 months ago (2016-05-18 14:47:50 UTC) #6
sdefresne
On 2016/05/18 14:47:50, Nico (vacation May 19 to 22) wrote: > I think we're talking ...
4 years, 7 months ago (2016-05-18 18:40:24 UTC) #8
Nico
lgtm! https://codereview.chromium.org/1993653002/diff/40001/build/config/mac/sdk_info.py File build/config/mac/sdk_info.py (right): https://codereview.chromium.org/1993653002/diff/40001/build/config/mac/sdk_info.py#newcode42 build/config/mac/sdk_info.py:42: if xcode_version >= '0720': Maybe add an "TODO: ...
4 years, 7 months ago (2016-05-18 18:41:42 UTC) #9
sdefresne
On 2016/05/18 18:41:42, Nico (vacation May 19 to 22) wrote: > lgtm! > > https://codereview.chromium.org/1993653002/diff/40001/build/config/mac/sdk_info.py ...
4 years, 7 months ago (2016-05-18 18:50:38 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1993653002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1993653002/60001
4 years, 7 months ago (2016-05-18 18:51:35 UTC) #13
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 7 months ago (2016-05-18 19:33:50 UTC) #15
commit-bot: I haz the power
4 years, 7 months ago (2016-05-18 19:36:15 UTC) #17
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/268142df3c289fcd2605cd68f41e04ebade1067b
Cr-Commit-Position: refs/heads/master@{#394505}

Powered by Google App Engine
This is Rietveld 408576698