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

Issue 2350963006: Fix an issue in `gn analyze` when building all. (Closed)

Created:
4 years, 3 months ago by Dirk Pranke
Modified:
4 years, 3 months ago
Reviewers:
brettw, Nico
CC:
chromium-reviews, Dirk Pranke, tfarina
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix an issue in `gn analyze` when building all. If you ran `gn analyze` on a list of files that changed a build file, the list of compile targets and output targets should've been returned unchanged, but if the additional_compile_targets input included "all", the returned list was left empty. R=brettw@chromium.org BUG=648532 Committed: https://crrev.com/385a310b530199122f9781ead9410afe09b9c8d2 Cr-Commit-Position: refs/heads/master@{#419866}

Patch Set 1 : initial patch for review #

Total comments: 10

Patch Set 2 : fix constructors per review feedback #

Patch Set 3 : use nico's union code #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -7 lines) Patch
M tools/gn/analyzer.cc View 1 2 4 chunks +18 lines, -4 lines 0 comments Download
M tools/gn/analyzer_unittest.cc View 1 chunk +18 lines, -1 line 0 comments Download
M tools/mb/mb.py View 1 chunk +5 lines, -2 lines 0 comments Download

Messages

Total messages: 24 (11 generated)
Dirk Pranke
https://codereview.chromium.org/2350963006/diff/20001/tools/gn/analyzer.cc File tools/gn/analyzer.cc (right): https://codereview.chromium.org/2350963006/diff/20001/tools/gn/analyzer.cc#newcode243 tools/gn/analyzer.cc:243: Outputs outputs = Outputs(); Is this the best way ...
4 years, 3 months ago (2016-09-20 18:54:23 UTC) #3
Nico
https://codereview.chromium.org/2350963006/diff/20001/tools/gn/analyzer.cc File tools/gn/analyzer.cc (right): https://codereview.chromium.org/2350963006/diff/20001/tools/gn/analyzer.cc#newcode243 tools/gn/analyzer.cc:243: Outputs outputs = Outputs(); On 2016/09/20 18:54:23, Dirk Pranke ...
4 years, 3 months ago (2016-09-20 19:16:59 UTC) #4
Nico
Makes sense to me, but if you want someone who actually knows gn code, wait ...
4 years, 3 months ago (2016-09-20 19:20:44 UTC) #5
Dirk Pranke
https://codereview.chromium.org/2350963006/diff/20001/tools/gn/analyzer.cc File tools/gn/analyzer.cc (right): https://codereview.chromium.org/2350963006/diff/20001/tools/gn/analyzer.cc#newcode208 tools/gn/analyzer.cc:208: auto compile_targets = base::WrapUnique(new base::ListValue()); On 2016/09/20 19:20:44, Nico ...
4 years, 3 months ago (2016-09-20 19:24:17 UTC) #6
brettw
https://codereview.chromium.org/2350963006/diff/20001/tools/gn/analyzer.cc File tools/gn/analyzer.cc (right): https://codereview.chromium.org/2350963006/diff/20001/tools/gn/analyzer.cc#newcode275 tools/gn/analyzer.cc:275: outputs.compile_labels.insert(label); Just do what Nico suggested. Since you already ...
4 years, 3 months ago (2016-09-20 19:28:53 UTC) #9
Dirk Pranke
https://codereview.chromium.org/2350963006/diff/20001/tools/gn/analyzer.cc File tools/gn/analyzer.cc (right): https://codereview.chromium.org/2350963006/diff/20001/tools/gn/analyzer.cc#newcode275 tools/gn/analyzer.cc:275: outputs.compile_labels.insert(label); On 2016/09/20 19:28:53, brettw (ping on IM after ...
4 years, 3 months ago (2016-09-20 19:36:20 UTC) #10
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/2350963006/60001
4 years, 3 months ago (2016-09-20 19:37:00 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/301008)
4 years, 3 months ago (2016-09-20 20:17:50 UTC) #15
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/2350963006/60001
4 years, 3 months ago (2016-09-20 20:29:08 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/282909)
4 years, 3 months ago (2016-09-20 20:48:47 UTC) #19
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/2350963006/60001
4 years, 3 months ago (2016-09-20 20:56:10 UTC) #21
commit-bot: I haz the power
Committed patchset #3 (id:60001)
4 years, 3 months ago (2016-09-20 22:04:28 UTC) #22
commit-bot: I haz the power
4 years, 3 months ago (2016-09-20 22:06:34 UTC) #24
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/385a310b530199122f9781ead9410afe09b9c8d2
Cr-Commit-Position: refs/heads/master@{#419866}

Powered by Google App Engine
This is Rietveld 408576698