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

Issue 2116183002: Land chromium-side work to clean up handling of v8_target_cpu in the GN build. (Closed)

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

Description

Land chromium-side work to clean up handling of v8_target_cpu in the GN build. Currently v8_target_cpu can only be set to one particular architecture, and that won't work for monochrome/webview builds where we need to be able to build two different snapshots for two different architectures. The way things are set are also confusing for when you need to do builds for a target_cpu that is different from the host_cpu and the value of the v8_target_cpu might get out of sync between target and host. This change changes all that by making the cpu that v8 targets a function of the current toolchain (thus declaring a v8_current_cpu and using that instead). R=brettw@chromium.org, jochen@chromium.org, michaelbai@chromium.org BUG=625353 Committed: https://crrev.com/8a2de90db035b90a891f0b980ab6162fd3995499 Cr-Commit-Position: refs/heads/master@{#405551}

Patch Set 1 #

Patch Set 2 : for review #

Total comments: 14

Patch Set 3 : rework to use custom_toolchain, not buildconfig #

Patch Set 4 : work around two-sided-patch limitation #

Patch Set 5 : fix missing import #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -15 lines) Patch
M BUILD.gn View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M build/config/arm.gni View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M build/config/mips.gni View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M build/config/sanitizers/sanitizers.gni View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M build/config/v8_target_cpu.gni View 1 2 1 chunk +31 lines, -7 lines 0 comments Download
M build/toolchain/gcc_toolchain.gni View 1 2 3 4 4 chunks +17 lines, -1 line 0 comments Download
M build/toolchain/linux/BUILD.gn View 2 chunks +12 lines, -0 lines 0 comments Download
M chrome/test/base/js2gtest.gni View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 46 (22 generated)
Dirk Pranke
Okay, I think this should all work correctly now (in conjunction with the v8-side change ...
4 years, 5 months ago (2016-07-07 02:42:00 UTC) #3
Michael Achenbach
non-owner lgtm and a few questions and suggestions. https://codereview.chromium.org/2116183002/diff/20001/build/config/BUILDCONFIG.gn File build/config/BUILDCONFIG.gn (right): https://codereview.chromium.org/2116183002/diff/20001/build/config/BUILDCONFIG.gn#newcode153 build/config/BUILDCONFIG.gn:153: # ...
4 years, 5 months ago (2016-07-07 07:24:23 UTC) #6
jochen (gone - plz use gerrit)
lgtm
4 years, 5 months ago (2016-07-07 08:56:56 UTC) #7
Dirk Pranke
https://codereview.chromium.org/2116183002/diff/20001/build/config/BUILDCONFIG.gn File build/config/BUILDCONFIG.gn (right): https://codereview.chromium.org/2116183002/diff/20001/build/config/BUILDCONFIG.gn#newcode153 build/config/BUILDCONFIG.gn:153: # mips_arch_variant) to be set to their defaults either ...
4 years, 5 months ago (2016-07-07 17:28:13 UTC) #8
brettw
https://codereview.chromium.org/2116183002/diff/20001/build/config/BUILDCONFIG.gn File build/config/BUILDCONFIG.gn (right): https://codereview.chromium.org/2116183002/diff/20001/build/config/BUILDCONFIG.gn#newcode162 build/config/BUILDCONFIG.gn:162: is_msan = false I have a negative reaction to ...
4 years, 5 months ago (2016-07-07 17:56:21 UTC) #10
michaelbai
Thanks, LGTM with 2 comments, let me know once the patch is ready, I will ...
4 years, 5 months ago (2016-07-07 18:41:26 UTC) #11
brettw
From IM which may get lost: If you're passing args to toolchains, that implies this ...
4 years, 5 months ago (2016-07-07 20:03:12 UTC) #12
Michael Achenbach
https://codereview.chromium.org/2116183002/diff/20001/build/config/BUILDCONFIG.gn File build/config/BUILDCONFIG.gn (right): https://codereview.chromium.org/2116183002/diff/20001/build/config/BUILDCONFIG.gn#newcode162 build/config/BUILDCONFIG.gn:162: is_msan = false On 2016/07/07 17:56:21, brettw (plz ping ...
4 years, 5 months ago (2016-07-08 06:57:11 UTC) #14
Dirk Pranke
Updates: Brett and I talked about this patch for a while yesterday and sketeched out ...
4 years, 5 months ago (2016-07-08 17:24:46 UTC) #15
michaelbai
On 2016/07/08 17:24:46, Dirk Pranke wrote: > Updates: Brett and I talked about this patch ...
4 years, 5 months ago (2016-07-08 22:57:55 UTC) #16
Dirk Pranke
Okay, as discussed w/ brettw@ offline, I've produced a version of this patch that backs ...
4 years, 5 months ago (2016-07-12 00:28:47 UTC) #18
michaelbai
lgtm Tried this patch, it still works :)
4 years, 5 months ago (2016-07-12 01:24:46 UTC) #19
Michael Achenbach
lgtm
4 years, 5 months ago (2016-07-12 07:34:26 UTC) #20
brettw
lgtm
4 years, 5 months ago (2016-07-12 19:49:12 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/2116183002/60001
4 years, 5 months ago (2016-07-13 01:48:34 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_clang_dbg_recipe/builds/95457) android_compile_dbg on master.tryserver.chromium.android (JOB_FAILED, ...
4 years, 5 months ago (2016-07-13 01:58:59 UTC) #26
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/2116183002/100001
4 years, 5 months ago (2016-07-14 20:02:59 UTC) #37
commit-bot: I haz the power
Committed patchset #5 (id:100001)
4 years, 5 months ago (2016-07-14 20:08:55 UTC) #39
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-14 20:09:27 UTC) #40
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/8a2de90db035b90a891f0b980ab6162fd3995499 Cr-Commit-Position: refs/heads/master@{#405551}
4 years, 5 months ago (2016-07-14 20:11:51 UTC) #42
lmilko
On 2016/07/14 20:11:51, commit-bot: I haz the power wrote: > Patchset 5 (id:??) landed as ...
4 years, 5 months ago (2016-07-18 12:33:45 UTC) #43
Dirk Pranke
On 2016/07/18 12:33:45, lmilko wrote: > On 2016/07/14 20:11:51, commit-bot: I haz the power wrote: ...
4 years, 5 months ago (2016-07-18 17:36:42 UTC) #44
Dirk Pranke
I've posted an attempt to define the needed toolchains in https://codereview.chromium.org/2159003002/ .
4 years, 5 months ago (2016-07-18 21:28:21 UTC) #45
Michael Achenbach
4 years, 5 months ago (2016-07-20 13:23:12 UTC) #46
Message was sent while issue was closed.
This has another small glitch, which I filed in
https://bugs.chromium.org/p/chromium/issues/detail?id=629825

Powered by Google App Engine
This is Rietveld 408576698