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

Issue 1467413005: GN: Propagate top-level host_toolchain through to all toolchains (Closed)

Created:
5 years ago by Roland McGrath
Modified:
5 years ago
Reviewers:
Dirk Pranke, *brettw
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

GN: Propagate top-level host_toolchain through to all toolchains The logic to choose host_toolchain depends on variables like is_clang that might be overridden in toolchain_args() as well as set as a build argument by the user. Only the top-level build arguments should affect the host_toolchain value, not anything set in some toolchain's toolchain_args() block. To achieve this, set host_toolchain once at top level and then make each toolchain propagate that value down in its toolchain_args() block. BUG=512869 R=dpranke@chromium.org Committed: https://crrev.com/e393ea6912a747e8c340fc5a53f2be45028d70c1 Cr-Commit-Position: refs/heads/master@{#362758}

Patch Set 1 #

Patch Set 2 : tweak assert for windows x86 kludge #

Total comments: 1

Patch Set 3 : fix assert #

Total comments: 2

Patch Set 4 : drop assert, add TODO #

Patch Set 5 : restore kludge for android case #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -23 lines) Patch
M build/config/BUILDCONFIG.gn View 1 2 3 4 3 chunks +35 lines, -23 lines 0 comments Download
M build/toolchain/gcc_toolchain.gni View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M build/toolchain/mac/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M build/toolchain/win/BUILD.gn View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (9 generated)
Roland McGrath
5 years ago (2015-11-25 01:06:16 UTC) #1
Dirk Pranke
okay, you beat me to the change. the toolchain changes are right, but I think ...
5 years ago (2015-11-25 03:48:05 UTC) #2
Roland McGrath
PTAL
5 years ago (2015-12-01 21:02:01 UTC) #3
Dirk Pranke
lgtm
5 years ago (2015-12-01 21:07:32 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1467413005/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1467413005/40001
5 years ago (2015-12-01 21:20:22 UTC) #6
Roland McGrath
Oops, failed to notice the per-file OWNERS there. Brett, OWNERS review please.
5 years ago (2015-12-01 21:53:41 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_dbg on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_dbg/builds/147517)
5 years ago (2015-12-01 22:00:47 UTC) #11
brettw
https://codereview.chromium.org/1467413005/diff/40001/build/config/BUILDCONFIG.gn File build/config/BUILDCONFIG.gn (right): https://codereview.chromium.org/1467413005/diff/40001/build/config/BUILDCONFIG.gn#newcode58 build/config/BUILDCONFIG.gn:58: buildconfig_in_default_toolchain = current_cpu == "" && current_os == "" ...
5 years ago (2015-12-01 22:08:19 UTC) #12
Roland McGrath
https://codereview.chromium.org/1467413005/diff/40001/build/config/BUILDCONFIG.gn File build/config/BUILDCONFIG.gn (right): https://codereview.chromium.org/1467413005/diff/40001/build/config/BUILDCONFIG.gn#newcode58 build/config/BUILDCONFIG.gn:58: buildconfig_in_default_toolchain = current_cpu == "" && current_os == "" ...
5 years ago (2015-12-01 22:12:18 UTC) #13
Dirk Pranke
On 2015/12/01 22:12:18, Roland McGrath wrote: > https://codereview.chromium.org/1467413005/diff/40001/build/config/BUILDCONFIG.gn > File build/config/BUILDCONFIG.gn (right): > > https://codereview.chromium.org/1467413005/diff/40001/build/config/BUILDCONFIG.gn#newcode58 ...
5 years ago (2015-12-01 22:34:37 UTC) #14
Roland McGrath
On 2015/12/01 22:34:37, Dirk Pranke wrote: > Brett and I discussed this a bit and ...
5 years ago (2015-12-01 22:48:14 UTC) #15
Dirk Pranke
lgtm. of course you still need brett's approval as well.
5 years ago (2015-12-01 22:52:49 UTC) #16
brettw
lgtm
5 years ago (2015-12-01 22:59:29 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1467413005/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1467413005/60001
5 years ago (2015-12-01 23:00:48 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/148471)
5 years ago (2015-12-02 00:24:20 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1467413005/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1467413005/80001
5 years ago (2015-12-02 18:18:31 UTC) #24
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years ago (2015-12-02 18:52:25 UTC) #25
commit-bot: I haz the power
5 years ago (2015-12-02 18:53:19 UTC) #27
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/e393ea6912a747e8c340fc5a53f2be45028d70c1
Cr-Commit-Position: refs/heads/master@{#362758}

Powered by Google App Engine
This is Rietveld 408576698