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

Issue 232063002: GN: Don't write duplicate phony rules. (Closed)

Created:
6 years, 8 months ago by brettw
Modified:
6 years, 8 months ago
Reviewers:
scottmg
CC:
chromium-reviews, tfarina
Visibility:
Public.

Description

GN: Don't write duplicate phony rules. In GN it's possible to have targets with the same short name as long as the files in the root dir don't collide. This is easiest to get with source_sets, where there is no output file and you don't have to worry about naming at all. But currently Ninja will complain about duplicate rules since we write "short" phony rules for each target. This patch skips the phony rule shortcuts for targets with duplicate names. The places where I was seeing the collision problems was in the "test_support" type target where there is little reason to use the short name anyway. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=262874

Patch Set 1 #

Patch Set 2 : #

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

Messages

Total messages: 8 (0 generated)
brettw
6 years, 8 months ago (2014-04-09 21:47:00 UTC) #1
scottmg
lgtm
6 years, 8 months ago (2014-04-09 21:52:46 UTC) #2
brettw
The CQ bit was checked by brettw@chromium.org
6 years, 8 months ago (2014-04-09 21:55:42 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/brettw@chromium.org/232063002/1
6 years, 8 months ago (2014-04-09 21:56:24 UTC) #4
brettw
The CQ bit was unchecked by brettw@chromium.org
6 years, 8 months ago (2014-04-09 22:11:37 UTC) #5
brettw
The CQ bit was checked by brettw@chromium.org
6 years, 8 months ago (2014-04-09 22:12:16 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/brettw@chromium.org/232063002/20001
6 years, 8 months ago (2014-04-09 22:12:39 UTC) #7
commit-bot: I haz the power
6 years, 8 months ago (2014-04-10 00:25:26 UTC) #8
Message was sent while issue was closed.
Change committed as 262874

Powered by Google App Engine
This is Rietveld 408576698