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

Issue 2824153002: Use $root:default as a "default" rule (Closed)

Created:
3 years, 8 months ago by Petr Hosek
Modified:
3 years, 8 months ago
Reviewers:
Dirk Pranke, brettw
CC:
chromium-reviews, tfarina, agrieve+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Use $root:default as a "default" rule When the root build file is changed in .gn file, we should check $root:default rather than //:default when looking for "default" rule. Review-Url: https://codereview.chromium.org/2824153002 Cr-Commit-Position: refs/heads/master@{#465758} Committed: https://chromium.googlesource.com/chromium/src/+/ddb3babce43a642e5f4e985e2a69c741057aad3c

Patch Set 1 #

Patch Set 2 : Formatting #

Patch Set 3 : Write the default target #

Patch Set 4 : Update the documentation #

Total comments: 11

Patch Set 5 : Code review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -12 lines) Patch
M tools/gn/build_settings.h View 3 chunks +6 lines, -0 lines 0 comments Download
M tools/gn/build_settings.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M tools/gn/docs/reference.md View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M tools/gn/ninja_build_writer.cc View 1 2 3 4 4 chunks +18 lines, -8 lines 0 comments Download
M tools/gn/setup.cc View 1 4 3 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 15 (5 generated)
Petr Hosek
3 years, 8 months ago (2017-04-18 08:59:56 UTC) #3
Dirk Pranke
This looks reasonable to me. However, looking at the documentation for "root" (setup.cc:95), it says: ...
3 years, 8 months ago (2017-04-18 20:12:15 UTC) #4
Petr Hosek
On 2017/04/18 20:12:15, Dirk Pranke wrote: > This looks reasonable to me. I forgot to ...
3 years, 8 months ago (2017-04-19 18:02:47 UTC) #5
Dirk Pranke
On 2017/04/19 18:02:47, Petr Hosek wrote: > On 2017/04/18 20:12:15, Dirk Pranke wrote: > > ...
3 years, 8 months ago (2017-04-19 18:18:22 UTC) #6
brettw
https://codereview.chromium.org/2824153002/diff/60001/tools/gn/build_settings.cc File tools/gn/build_settings.cc (right): https://codereview.chromium.org/2824153002/diff/60001/tools/gn/build_settings.cc#newcode28 tools/gn/build_settings.cc:28: void BuildSettings::SetRootTargetLabel(const Label& l) { In the header you ...
3 years, 8 months ago (2017-04-19 19:49:25 UTC) #7
Petr Hosek
https://codereview.chromium.org/2824153002/diff/60001/tools/gn/build_settings.cc File tools/gn/build_settings.cc (right): https://codereview.chromium.org/2824153002/diff/60001/tools/gn/build_settings.cc#newcode28 tools/gn/build_settings.cc:28: void BuildSettings::SetRootTargetLabel(const Label& l) { On 2017/04/19 19:49:25, brettw ...
3 years, 8 months ago (2017-04-19 20:20:26 UTC) #8
brettw
lgtm
3 years, 8 months ago (2017-04-19 20:44:25 UTC) #9
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/2824153002/80001
3 years, 8 months ago (2017-04-19 20:50:03 UTC) #11
commit-bot: I haz the power
Committed patchset #5 (id:80001) as https://chromium.googlesource.com/chromium/src/+/ddb3babce43a642e5f4e985e2a69c741057aad3c
3 years, 8 months ago (2017-04-19 21:27:52 UTC) #14
Dirk Pranke
3 years, 8 months ago (2017-04-19 23:01:27 UTC) #15
Message was sent while issue was closed.
https://codereview.chromium.org/2824153002/diff/60001/tools/gn/setup.cc
File tools/gn/setup.cc (right):

https://codereview.chromium.org/2824153002/diff/60001/tools/gn/setup.cc#newco...
tools/gn/setup.cc:98: build file containing this target name. This defaults to
label which will
On 2017/04/19 20:20:26, Petr Hosek wrote:
> On 2017/04/19 19:49:25, brettw (plz ping after 24h) wrote:
> > This new text isn't gramatical. I think the old text is probably fine. It's
> what
> > actually happens, and I don't think people are commonly reading this
> > documentation and setting the root such that they would get confused by it.
> 
> Done.

FWIW, I still find it confusing.

Powered by Google App Engine
This is Rietveld 408576698