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

Issue 2780023002: Get gn analyze to respect changes to vs_toolchain.py (Closed)

Created:
3 years, 8 months ago by brucedawson
Modified:
3 years, 8 months ago
Reviewers:
Dirk Pranke, brettw
CC:
chromium-reviews, tfarina, agrieve+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Get gn analyze to respect changes to vs_toolchain.py When changing the default compiler toolchain, either when changing _GetDesiredVsToolchainHashes() or CURRENT_DEFAULT_TOOLCHAIN_VERSION, it is important that gn analyze knows that this means that everything needs rebuilding. This avoids having to use the blunt-hammer of landmines. R=dpranke@chromium.org BUG=683729, 555273 Review-Url: https://codereview.chromium.org/2780023002 Cr-Commit-Position: refs/heads/master@{#460887} Committed: https://chromium.googlesource.com/chromium/src/+/b62c0d449adee39905c8e0b7cd262f22502ae67a

Patch Set 1 #

Patch Set 2 : Tweaked vs_toolchain.py detection #

Total comments: 1

Patch Set 3 : Match more of the path to avoid false positives #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -2 lines) Patch
M tools/gn/analyzer.cc View 1 2 2 chunks +4 lines, -2 lines 0 comments Download

Messages

Total messages: 18 (9 generated)
brucedawson
I tested this change with the following input.json file: { "files": ["c:/src/chromium4/src/build/vs_toolchain.py"], "test_targets": ["//base:base_unittests"], "additional_compile_targets": ...
3 years, 8 months ago (2017-03-28 21:33:10 UTC) #1
brettw
https://codereview.chromium.org/2780023002/diff/20001/tools/gn/analyzer.cc File tools/gn/analyzer.cc (right): https://codereview.chromium.org/2780023002/diff/20001/tools/gn/analyzer.cc#newcode63 tools/gn/analyzer.cc:63: file->GetName() == "vs_toolchain.py") I notice there are three such ...
3 years, 8 months ago (2017-03-29 23:05:07 UTC) #4
brucedawson
> and only one of them counts. If boringssl rolls and we get an updated ...
3 years, 8 months ago (2017-03-30 00:31:17 UTC) #7
brettw
lgtm
3 years, 8 months ago (2017-03-30 21:20:19 UTC) #10
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/2780023002/40001
3 years, 8 months ago (2017-03-30 21:24:10 UTC) #12
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/chromium/src/+/b62c0d449adee39905c8e0b7cd262f22502ae67a
3 years, 8 months ago (2017-03-30 21:36:23 UTC) #15
Dirk Pranke
This keeps analyze from short-circuiting a build, but does it actually cause GN to treat ...
3 years, 8 months ago (2017-03-31 22:59:22 UTC) #16
brucedawson
On 2017/03/31 22:59:22, Dirk Pranke wrote: > This keeps analyze from short-circuiting a build, but ...
3 years, 8 months ago (2017-04-04 21:06:13 UTC) #17
Dirk Pranke
3 years, 8 months ago (2017-04-05 00:04:31 UTC) #18
Message was sent while issue was closed.
On 2017/04/04 21:06:13, brucedawson wrote:
> On 2017/03/31 22:59:22, Dirk Pranke wrote:
> > This keeps analyze from short-circuiting a build, but does it actually cause
> GN
> > to treat things as out of date and needing a recompile?
> 
> This change only needs to make gn analyze behave. The secondary problem of
> making ninja realize that the compile and link steps need to be redone was
> handled a year ago by a change (crrev.com/1634923002) that puts each toolchain
> in a separate directory, with the toolchain hash as part of the path. This
means
> that the command-line will change and ninja will treat all the steps as
needing
> to be re-run.

Yup, as you filled me in offline, this makes sense. Nice!

Powered by Google App Engine
This is Rietveld 408576698