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

Issue 2388063003: Add a variable use_system_xcode to GN. (Closed)

Created:
4 years, 2 months ago by erikchen
Modified:
4 years, 2 months ago
CC:
chromium-reviews, blink-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a variable use_system_xcode to GN. Start plumbing it through to actions that require binaries from the Xcode toolchain. BUG=651267 TBR=sdefresne@chromium.org Committed: https://crrev.com/b58a723ab22333fe40575f6992c3cb8c7dde0b0a Cr-Commit-Position: refs/heads/master@{#423673}

Patch Set 1 #

Patch Set 2 : Minor fixes. #

Patch Set 3 : More fixes. #

Patch Set 4 : Add a missing required argument. #

Total comments: 8

Patch Set 5 : Comments from dpranke. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+117 lines, -39 lines) Patch
M build/config/mac/base_rules.gni View 1 chunk +13 lines, -7 lines 0 comments Download
M build/config/mac/compile_xib.py View 1 2 2 chunks +6 lines, -0 lines 1 comment Download
M build/config/mac/xcrun.py View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M build/toolchain/mac/BUILD.gn View 1 2 6 chunks +11 lines, -5 lines 0 comments Download
M build/toolchain/toolchain.gni View 1 chunk +12 lines, -0 lines 2 comments Download
M chrome/BUILD.gn View 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/app/nibs/BUILD.gn View 1 chunk +11 lines, -2 lines 0 comments Download
M chrome/app/nibs/generate_localizer.py View 1 2 3 4 3 chunks +22 lines, -14 lines 0 comments Download
M chrome/tools/build/mac/run_verify_order.py View 1 chunk +4 lines, -0 lines 0 comments Download
M components/policy/BUILD.gn View 2 chunks +15 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/build/scripts/rule_bison.py View 2 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/BUILD.gn View 2 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 37 (14 generated)
erikchen
dpranke, thakis: PTAL Assuming this looks reasonable, I'll finish plumbing the parameter through WebKit [there ...
4 years, 2 months ago (2016-10-03 23:17:38 UTC) #6
erikchen
4 years, 2 months ago (2016-10-03 23:27:06 UTC) #8
justincohen
Does https://build.chromium.org/p/chromium.fyi/builders/Chromium%20Mac%2010.11%20Force%20Mac%20Toolchain have CLT installed?
4 years, 2 months ago (2016-10-03 23:46:18 UTC) #9
erikchen
On 2016/10/03 23:46:18, justincohen wrote: > Does > https://build.chromium.org/p/chromium.fyi/builders/Chromium%20Mac%2010.11%20Force%20Mac%20Toolchain > have CLT installed? Yes it ...
4 years, 2 months ago (2016-10-04 00:09:28 UTC) #10
Dirk Pranke
lgtm as-is, though I'd probably prefer the single-GN-arg approach if it can be made to ...
4 years, 2 months ago (2016-10-04 20:25:40 UTC) #11
Nico
https://codereview.chromium.org/2388063003/diff/60001/build/toolchain/mac/BUILD.gn File build/toolchain/mac/BUILD.gn (right): https://codereview.chromium.org/2388063003/diff/60001/build/toolchain/mac/BUILD.gn#newcode68 build/toolchain/mac/BUILD.gn:68: env_wrapper = "export DEVELOPER_DIR=$hermetic_xcode_path; " why not pass this ...
4 years, 2 months ago (2016-10-04 20:39:33 UTC) #12
erikchen
https://codereview.chromium.org/2388063003/diff/60001/build/toolchain/mac/BUILD.gn File build/toolchain/mac/BUILD.gn (right): https://codereview.chromium.org/2388063003/diff/60001/build/toolchain/mac/BUILD.gn#newcode68 build/toolchain/mac/BUILD.gn:68: env_wrapper = "export DEVELOPER_DIR=$hermetic_xcode_path; " On 2016/10/04 20:39:33, Nico ...
4 years, 2 months ago (2016-10-05 19:57:19 UTC) #13
Nico
https://codereview.chromium.org/2388063003/diff/60001/build/toolchain/mac/BUILD.gn File build/toolchain/mac/BUILD.gn (right): https://codereview.chromium.org/2388063003/diff/60001/build/toolchain/mac/BUILD.gn#newcode68 build/toolchain/mac/BUILD.gn:68: env_wrapper = "export DEVELOPER_DIR=$hermetic_xcode_path; " On 2016/10/05 19:57:19, erikchen ...
4 years, 2 months ago (2016-10-05 20:00:44 UTC) #14
erikchen
> Mostly "less magic" -- we'd understand better what's actually happening. Point taken. Note that ...
4 years, 2 months ago (2016-10-05 20:23:41 UTC) #15
Dirk Pranke
https://codereview.chromium.org/2388063003/diff/60001/build/toolchain/toolchain.gni File build/toolchain/toolchain.gni (right): https://codereview.chromium.org/2388063003/diff/60001/build/toolchain/toolchain.gni#newcode54 build/toolchain/toolchain.gni:54: rebase_path("//build/mac_files/Xcode.app", "", root_build_dir) On 2016/10/05 19:57:19, erikchen wrote: > ...
4 years, 2 months ago (2016-10-06 01:08:44 UTC) #16
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/2388063003/80001
4 years, 2 months ago (2016-10-06 17:13:49 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/275489)
4 years, 2 months ago (2016-10-06 17:23:55 UTC) #21
erikchen
sdefresne: Please review components/ thakis: Does chrome/ lg to you?
4 years, 2 months ago (2016-10-06 17:38:18 UTC) #23
Nico
yes, lgtm I'm kind of unhappy with the linker situation though. Why do we have ...
4 years, 2 months ago (2016-10-06 17:48:13 UTC) #24
Dirk Pranke
On 2016/10/06 17:48:13, Nico wrote: > yes, lgtm > > I'm kind of unhappy with ...
4 years, 2 months ago (2016-10-06 18:09:18 UTC) #25
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/2388063003/80001
4 years, 2 months ago (2016-10-06 20:50:45 UTC) #28
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 2 months ago (2016-10-06 20:59:16 UTC) #30
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/b58a723ab22333fe40575f6992c3cb8c7dde0b0a Cr-Commit-Position: refs/heads/master@{#423673}
4 years, 2 months ago (2016-10-06 21:02:26 UTC) #32
sdefresne
lgtm https://codereview.chromium.org/2388063003/diff/80001/build/config/mac/compile_xib.py File build/config/mac/compile_xib.py (right): https://codereview.chromium.org/2388063003/diff/80001/build/config/mac/compile_xib.py#newcode26 build/config/mac/compile_xib.py:26: if (args.developer_dir): style: parenthesis should have been omitted ...
4 years, 2 months ago (2016-10-07 13:25:16 UTC) #33
erikchen
https://codereview.chromium.org/2388063003/diff/80001/build/toolchain/toolchain.gni File build/toolchain/toolchain.gni (right): https://codereview.chromium.org/2388063003/diff/80001/build/toolchain/toolchain.gni#newcode53 build/toolchain/toolchain.gni:53: hermetic_xcode_path = On 2016/10/07 13:25:16, sdefresne wrote: > nit: ...
4 years, 2 months ago (2016-10-07 23:25:42 UTC) #34
sdefresne
On 2016/10/07 23:25:42, erikchen wrote: > https://codereview.chromium.org/2388063003/diff/80001/build/toolchain/toolchain.gni > File build/toolchain/toolchain.gni (right): > > https://codereview.chromium.org/2388063003/diff/80001/build/toolchain/toolchain.gni#newcode53 > ...
4 years, 2 months ago (2016-10-10 02:29:20 UTC) #35
Nico
On Sun, Oct 9, 2016 at 10:29 PM, <sdefresne@chromium.org> wrote: > On 2016/10/07 23:25:42, erikchen ...
4 years, 2 months ago (2016-10-10 15:01:21 UTC) #36
Nico
4 years, 2 months ago (2016-10-10 15:01:35 UTC) #37
Message was sent while issue was closed.
On Sun, Oct 9, 2016 at 10:29 PM, <sdefresne@chromium.org> wrote:

> On 2016/10/07 23:25:42, erikchen wrote:
> >
> https://codereview.chromium.org/2388063003/diff/80001/
> build/toolchain/toolchain.gni
> > File build/toolchain/toolchain.gni (right):
> >
> >
> https://codereview.chromium.org/2388063003/diff/80001/
> build/toolchain/toolchain.gni#newcode53
> > build/toolchain/toolchain.gni:53: hermetic_xcode_path =
> > On 2016/10/07 13:25:16, sdefresne wrote:
> > > nit: do you expect developer to change this variable? if not, maybe it
> would
> > be
> > > better to put it outside of "declare_args()" block
> >
> > I expect to use this when I rev the hermetic toolchain. Not sure about
> others...
>
> This could probably be used when testing new version of Xcode too, so make
> sense
> to have it as a configurable variable.
>

I don't think "for local testing" is a good motivation for making variables
configurable. Just changing the default in the .gn file locally is no
harder than typing in the override. If we put in a config var for
everything people used locally, we'd have confusingly many configurables.

-- 
You received this message because you are subscribed to the Google Groups
"Chromium-reviews" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698