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

Issue 1222693002: Add ninja dependency reference to gen written files. (Closed)

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

Description

Add ninja dependency reference to gen written files. For example, if one or more of the <blah>.tmp files is removed, even as part of an entire hierarchy/subtree currently the build fails because ninja does not know how to re-make it. While it works, I don't like this hack. It asserts that the build needs to be rewritten if files generated by "gn gen" are out of date. While true, that's not really the best expression in the ninja 'language' of what's really happening. It is a nice small change though. BUG=469621 TEST=Build time only. See https://code.google.com/p/chromium/issues/detail?id=469621#c3 Committed: https://crrev.com/d82b2317e6bd619236ca7de934b341e7b32e7380 Cr-Commit-Position: refs/heads/master@{#337873}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Cleaned out extraneous changes. #

Total comments: 4

Patch Set 3 : Improve comments #

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

Messages

Total messages: 10 (3 generated)
Peter Mayo
https://codereview.chromium.org/1222693002/diff/1/build/toolchain/cros/BUILD.gn File build/toolchain/cros/BUILD.gn (right): https://codereview.chromium.org/1222693002/diff/1/build/toolchain/cros/BUILD.gn#newcode34 build/toolchain/cros/BUILD.gn:34: Bah - remove this.
5 years, 5 months ago (2015-07-02 22:12:15 UTC) #1
Peter Mayo
PTAL. It seems this change doesn't change the existing unittests (they still pass). It's not ...
5 years, 5 months ago (2015-07-02 22:30:53 UTC) #3
brettw
LGTM with minor tweaks https://codereview.chromium.org/1222693002/diff/20001/tools/gn/function_write_file.cc File tools/gn/function_write_file.cc (right): https://codereview.chromium.org/1222693002/diff/20001/tools/gn/function_write_file.cc#newcode117 tools/gn/function_write_file.cc:117: // Track how to recreate ...
5 years, 5 months ago (2015-07-06 21:29:40 UTC) #4
Peter Mayo
https://codereview.chromium.org/1222693002/diff/20001/tools/gn/function_write_file.cc File tools/gn/function_write_file.cc (right): https://codereview.chromium.org/1222693002/diff/20001/tools/gn/function_write_file.cc#newcode117 tools/gn/function_write_file.cc:117: // Track how to recreate this file, since we ...
5 years, 5 months ago (2015-07-06 22:09:00 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1222693002/40001
5 years, 5 months ago (2015-07-08 18:42:49 UTC) #8
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 5 months ago (2015-07-08 18:59:59 UTC) #9
commit-bot: I haz the power
5 years, 5 months ago (2015-07-08 19:01:02 UTC) #10
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/d82b2317e6bd619236ca7de934b341e7b32e7380
Cr-Commit-Position: refs/heads/master@{#337873}

Powered by Google App Engine
This is Rietveld 408576698