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

Issue 2166173002: Fix double-building of v8 in GN builds when setting just v8_target_cpu. (Closed)

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

Description

Fix double-building of v8 in GN builds when setting just v8_target_cpu. Because of the somewhat strange way default toolchains and custom toolchains and user-specified arguments work in GN, if you did a v8 build that just set v8_target_cpu, you could end up building two identical copies of v8 (see the comments in the change for more). This CL identifies that case and fixes it. R=machenbach@chromium.org BUG=629825 Committed: https://crrev.com/3536db45c9409c9aadc4eee6004cf337c0588cdb Cr-Commit-Position: refs/heads/master@{#37926}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -4 lines) Patch
M snapshot_toolchain.gni View 1 chunk +14 lines, -4 lines 0 comments Download

Messages

Total messages: 15 (6 generated)
Dirk Pranke
4 years, 5 months ago (2016-07-20 23:59:07 UTC) #1
Michael Achenbach
lgtm - landing this to be able to add work on top of it now...
4 years, 5 months ago (2016-07-21 08:31:25 UTC) #6
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/2166173002/1
4 years, 5 months ago (2016-07-21 08:31:46 UTC) #8
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 5 months ago (2016-07-21 09:05:47 UTC) #9
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/3536db45c9409c9aadc4eee6004cf337c0588cdb Cr-Commit-Position: refs/heads/master@{#37926}
4 years, 5 months ago (2016-07-21 09:06:47 UTC) #11
Michael Achenbach
A revert of this CL (patchset #1 id:1) has been created in https://codereview.chromium.org/2167113002/ by machenbach@chromium.org. ...
4 years, 5 months ago (2016-07-21 10:52:39 UTC) #12
Michael Achenbach
Sorry for committing too fast. I manually added android_clang_dbg_recipe in order to catch problems like ...
4 years, 5 months ago (2016-07-21 11:03:41 UTC) #13
Dirk Pranke
On 2016/07/21 11:03:41, Michael Achenbach (slow) wrote: > Sorry for committing too fast. I manually ...
4 years, 5 months ago (2016-07-21 17:20:48 UTC) #14
Dirk Pranke
4 years, 5 months ago (2016-07-22 01:54:02 UTC) #15
Message was sent while issue was closed.
On 2016/07/21 17:20:48, Dirk Pranke wrote:
> On 2016/07/21 11:03:41, Michael Achenbach (slow) wrote:
> > Sorry for committing too fast. I manually added android_clang_dbg_recipe in
> > order to catch problems like that and saw that it failed with and without
> patch.
> > The failures are different though, should have looked more closely.
> > 
> > Looks like it uses target toolchain as snapshot toolchain for mkpeephole.
> Maybe
> > that would affect mksnapshot too, but peephole ran first, not sure.
> 
> Ah, hmm, looks like this breaks the normal cross-compile case, and it wasn't
> obvious to me because I was just testing x86.
> 
> I'll have to think about this some more.

Revised fix posted to https://codereview.chromium.org/2171083003/ .

Powered by Google App Engine
This is Rietveld 408576698