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

Issue 2195753002: GN: only write targets that should be generated. (Closed)

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

Description

GN: only write targets that should be generated. Apparently forever GN has been writing .ninja files for targets that were resolved but didn't have the "should generate" bit set. The "should generate" bit will be unset for things in non-default toolchains that aren't required to build anything in the main toolchain. This set of things is small since most things will have incomplete deps if they're not required. But it comes up for a few NaCl copy rules. The extra files were never a problem because only "should generate" targets were written to the main ninja file, so the extra files were just unreferenced. The recent change that moves more stuff into the main file rather than subninjas exposed the bug, which now appears as multiply-defined targets. This fix only issues the callback when an item is both resolved and "should generate" is set. Committed: https://crrev.com/da21696cd246f78f66bdb5d6f6aa9deadf2e6abc Cr-Commit-Position: refs/heads/master@{#408676}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -15 lines) Patch
M tools/gn/builder.h View 2 chunks +7 lines, -6 lines 0 comments Download
M tools/gn/builder.cc View 2 chunks +11 lines, -5 lines 0 comments Download
M tools/gn/command_gen.cc View 2 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 17 (11 generated)
brettw
4 years, 4 months ago (2016-07-29 16:52:50 UTC) #2
jam
lgtm
4 years, 4 months ago (2016-07-29 17:03:38 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/2195753002/1
4 years, 4 months ago (2016-07-29 17:06:06 UTC) #11
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 4 months ago (2016-07-29 17:27:00 UTC) #13
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/da21696cd246f78f66bdb5d6f6aa9deadf2e6abc Cr-Commit-Position: refs/heads/master@{#408676}
4 years, 4 months ago (2016-07-29 17:28:50 UTC) #15
Dirk Pranke
4 years, 4 months ago (2016-07-29 23:51:35 UTC) #17
Message was sent while issue was closed.
lgtm

Powered by Google App Engine
This is Rietveld 408576698