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

Issue 455193003: GN: Generate error if multiple rules generate same file (Closed)

Created:
6 years, 4 months ago by jamesr
Modified:
6 years, 2 months ago
Reviewers:
brettw
CC:
chromium-reviews, tfarina
Project:
chromium
Visibility:
Public.

Description

GN: Generate error if multiple rules generate same file This will pretty much always result in a bad build but is only a warning in ninja. Committed: https://crrev.com/598f6a85bb66f2e5ce5c04b43de9786aea55a089 Cr-Commit-Position: refs/heads/master@{#297077}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : Just check outputs when producing final ninja file #

Total comments: 1

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -31 lines) Patch
M tools/gn/command_gen.cc View 1 2 3 4 1 chunk +5 lines, -1 line 0 comments Download
M tools/gn/ninja_build_writer.h View 1 2 3 4 3 chunks +5 lines, -3 lines 0 comments Download
M tools/gn/ninja_build_writer.cc View 1 2 3 4 8 chunks +19 lines, -8 lines 0 comments Download
M tools/gn/ninja_writer.h View 1 2 3 4 2 chunks +10 lines, -5 lines 0 comments Download
M tools/gn/ninja_writer.cc View 1 2 3 4 3 chunks +14 lines, -14 lines 0 comments Download

Messages

Total messages: 13 (2 generated)
jamesr
Example of the error this produces with this patch (which results in two components with ...
6 years, 2 months ago (2014-09-25 07:12:30 UTC) #2
brettw
Do you have timings? I'm concerned that this will be ~25K more lock calls. One ...
6 years, 2 months ago (2014-09-25 21:05:50 UTC) #3
jamesr
Without this patch on my z620: $ ./out/Release/gn gen out_gn/Component Done. Wrote 1620 targets from ...
6 years, 2 months ago (2014-09-26 04:56:58 UTC) #4
brettw
Also, I'm not actually that concerned about files from different targets mapping to the same ...
6 years, 2 months ago (2014-09-26 05:01:29 UTC) #5
jamesr
Ah, that's much better. The error message kind of sucks though: ERROR Duplicate rules for ...
6 years, 2 months ago (2014-09-26 05:21:27 UTC) #6
brettw
Also, this doesn't check the object files within the same target like the previous version ...
6 years, 2 months ago (2014-09-26 18:01:20 UTC) #7
jamesr
PTAL. I think multiple sources in the same target should also be an error but ...
6 years, 2 months ago (2014-09-26 20:55:06 UTC) #8
brettw
lgtm
6 years, 2 months ago (2014-09-26 23:48:09 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/455193003/80001
6 years, 2 months ago (2014-09-26 23:51:54 UTC) #11
commit-bot: I haz the power
Committed patchset #5 (id:80001) as d993334bb1d1afa16e4e4218e735652fcff624eb
6 years, 2 months ago (2014-09-26 23:57:08 UTC) #12
commit-bot: I haz the power
6 years, 2 months ago (2014-09-26 23:57:54 UTC) #13
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/598f6a85bb66f2e5ce5c04b43de9786aea55a089
Cr-Commit-Position: refs/heads/master@{#297077}

Powered by Google App Engine
This is Rietveld 408576698