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

Issue 1101323005: GN: Generate phony rules for unique executables. (Closed)

Created:
5 years, 8 months ago by Dirk Pranke
Modified:
5 years, 8 months ago
Reviewers:
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

GN: Generate phony rules for unique executables. Prior to this CL, if there were multiple targets ina GN build with the name 'unit_tests', we would not generate a top-level phony ninja target for them; you would have to specify either the full path to the output or the label name. This is confusing for things like 'browser_tests' and 'unit_tests', where in Chromium we might have multiple targets with that name, but only one of those is an executable (at least in the default toolchain). This CL adds logic to handle that case (so that 'unit_tests' does work). R=brettw@chromium.org BUG=480042 Committed: https://crrev.com/ab689a4f50c56521396eeab8deb9f8c6945d3c88 Cr-Commit-Position: refs/heads/master@{#326942}

Patch Set 1 #

Total comments: 2

Patch Set 2 : reformat #

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

Messages

Total messages: 8 (2 generated)
Dirk Pranke
5 years, 8 months ago (2015-04-24 22:53:42 UTC) #1
brettw
lgtm https://codereview.chromium.org/1101323005/diff/1/tools/gn/ninja_build_writer.cc File tools/gn/ninja_build_writer.cc (right): https://codereview.chromium.org/1101323005/diff/1/tools/gn/ninja_build_writer.cc#newcode213 tools/gn/ninja_build_writer.cc:213: // Look for executables; later we will generate ...
5 years, 8 months ago (2015-04-24 23:42:11 UTC) #2
Dirk Pranke
https://codereview.chromium.org/1101323005/diff/1/tools/gn/ninja_build_writer.cc File tools/gn/ninja_build_writer.cc (right): https://codereview.chromium.org/1101323005/diff/1/tools/gn/ninja_build_writer.cc#newcode213 tools/gn/ninja_build_writer.cc:213: // Look for executables; later we will generate phony ...
5 years, 8 months ago (2015-04-24 23:50:11 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1101323005/20001
5 years, 8 months ago (2015-04-24 23:50:45 UTC) #6
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 8 months ago (2015-04-25 00:29:50 UTC) #7
commit-bot: I haz the power
5 years, 8 months ago (2015-04-25 00:30:39 UTC) #8
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/ab689a4f50c56521396eeab8deb9f8c6945d3c88
Cr-Commit-Position: refs/heads/master@{#326942}

Powered by Google App Engine
This is Rietveld 408576698