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

Issue 2926013002: Support explicit pools in actions (Closed)

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

Description

Support explicit pools in actions This change allows explicitly specifying pools for actions. Furthermore, it is also possible to specify a default pool for actions as part of the toolchain. Pools can be also defined as console ones to emulate the original console attribute behavior. BUG=635308 Review-Url: https://codereview.chromium.org/2926013002 Cr-Commit-Position: refs/heads/master@{#483252} Committed: https://chromium.googlesource.com/chromium/src/+/43ee2b1163bdee1094aac234d25f52aab9decb62

Patch Set 1 #

Total comments: 15

Patch Set 2 : Support explicit pools in actions #

Patch Set 3 : Update reference #

Total comments: 4

Patch Set 4 : Handle help #

Patch Set 5 : Formatting #

Patch Set 6 : Create a predefined console pool object #

Patch Set 7 : Support explicit pools in actions #

Total comments: 6

Patch Set 8 : Remove console altogether #

Unified diffs Side-by-side diffs Delta from patch set Stats (+169 lines, -71 lines) Patch
M tools/gn/action_target_generator.h View 1 chunk +1 line, -1 line 0 comments Download
M tools/gn/action_target_generator.cc View 1 2 3 4 5 3 chunks +13 lines, -5 lines 0 comments Download
M tools/gn/action_values.h View 3 chunks +6 lines, -4 lines 0 comments Download
M tools/gn/action_values.cc View 1 chunk +1 line, -1 line 0 comments Download
M tools/gn/builder.h View 1 2 3 4 5 6 7 3 chunks +5 lines, -0 lines 0 comments Download
M tools/gn/builder.cc View 1 2 3 4 5 6 7 5 chunks +33 lines, -0 lines 0 comments Download
M tools/gn/command_help.cc View 1 2 3 3 chunks +8 lines, -9 lines 0 comments Download
M tools/gn/docs/reference.md View 1 2 3 4 5 6 7 9 chunks +31 lines, -13 lines 0 comments Download
M tools/gn/function_toolchain.cc View 1 5 chunks +9 lines, -7 lines 0 comments Download
M tools/gn/ninja_action_target_writer.cc View 3 chunks +12 lines, -2 lines 0 comments Download
M tools/gn/ninja_action_target_writer_unittest.cc View 2 chunks +5 lines, -1 line 0 comments Download
M tools/gn/ninja_build_writer.cc View 1 2 3 4 5 6 7 1 chunk +8 lines, -0 lines 0 comments Download
M tools/gn/ninja_toolchain_writer.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M tools/gn/pool.h View 2 chunks +5 lines, -0 lines 0 comments Download
M tools/gn/pool.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M tools/gn/toolchain.h View 2 chunks +2 lines, -0 lines 0 comments Download
M tools/gn/toolchain.cc View 1 2 3 4 3 chunks +3 lines, -0 lines 0 comments Download
M tools/gn/variables.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -4 lines 0 comments Download
M tools/gn/variables.cc View 1 2 3 4 5 6 7 4 chunks +18 lines, -24 lines 0 comments Download

Messages

Total messages: 23 (5 generated)
Petr Hosek
PTAL, at the moment it is possible to set the pool as being the console ...
3 years, 6 months ago (2017-06-07 03:16:34 UTC) #3
brettw
+Some Opera folks. I think Opera is the only one using "console=true". I believe this ...
3 years, 6 months ago (2017-06-08 18:36:20 UTC) #4
tsniatowski
On 2017/06/08 18:36:20, brettw wrote: > +Some Opera folks. I think Opera is the only ...
3 years, 6 months ago (2017-06-08 18:42:44 UTC) #5
Petr Hosek
Is the console pool actually needed? I haven't found any uses in Chromium, and if ...
3 years, 6 months ago (2017-06-09 03:24:33 UTC) #6
Petr Hosek
https://codereview.chromium.org/2926013002/diff/1/tools/gn/functions.cc File tools/gn/functions.cc (right): https://codereview.chromium.org/2926013002/diff/1/tools/gn/functions.cc#newcode736 tools/gn/functions.cc:736: A pool is referenced by its label just like ...
3 years, 6 months ago (2017-06-13 02:16:58 UTC) #7
brettw
If Opera's not using the console pool, I'm supportive of just deleting it. https://codereview.chromium.org/2926013002/diff/40001/tools/gn/toolchain.cc File ...
3 years, 6 months ago (2017-06-13 21:59:16 UTC) #8
Petr Hosek
https://codereview.chromium.org/2926013002/diff/40001/tools/gn/toolchain.cc File tools/gn/toolchain.cc (right): https://codereview.chromium.org/2926013002/diff/40001/tools/gn/toolchain.cc#newcode85 tools/gn/toolchain.cc:85: return kToolAction; On 2017/06/13 21:59:16, brettw wrote: > Consistency ...
3 years, 6 months ago (2017-06-17 02:44:25 UTC) #9
Petr Hosek
@tsniatowski would it be fine with Opera if we remove console altogether? Would this be ...
3 years, 6 months ago (2017-06-20 01:20:10 UTC) #10
Petr Hosek
On 2017/06/20 01:20:10, Petr Hosek wrote: > @tsniatowski would it be fine with Opera if ...
3 years, 6 months ago (2017-06-21 16:23:47 UTC) #11
tsniatowski
On 2017/06/21 16:23:47, Petr Hosek wrote: > On 2017/06/20 01:20:10, Petr Hosek wrote: > > ...
3 years, 6 months ago (2017-06-21 16:56:18 UTC) #12
Petr Hosek
On 2017/06/21 16:56:18, tsniatowski wrote: > On 2017/06/21 16:23:47, Petr Hosek wrote: > > On ...
3 years, 6 months ago (2017-06-21 19:53:22 UTC) #13
Olle Liljenzin
On 2017/06/21 16:23:47, Petr Hosek wrote: > On 2017/06/20 01:20:10, Petr Hosek wrote: > > ...
3 years, 6 months ago (2017-06-22 07:41:39 UTC) #14
Petr Hosek
ping
3 years, 5 months ago (2017-06-28 18:46:07 UTC) #15
brettw
Looks close but I have 2 nontrivial suggestions. https://codereview.chromium.org/2926013002/diff/120001/tools/gn/builder.cc File tools/gn/builder.cc (right): https://codereview.chromium.org/2926013002/diff/120001/tools/gn/builder.cc#newcode230 tools/gn/builder.cc:230: !AddDeps(record, ...
3 years, 5 months ago (2017-06-28 21:23:27 UTC) #16
Petr Hosek
https://codereview.chromium.org/2926013002/diff/120001/tools/gn/builder.cc File tools/gn/builder.cc (right): https://codereview.chromium.org/2926013002/diff/120001/tools/gn/builder.cc#newcode230 tools/gn/builder.cc:230: !AddDeps(record, target->public_configs(), err) || On 2017/06/28 21:23:27, brettw wrote: ...
3 years, 5 months ago (2017-06-28 23:42:32 UTC) #17
brettw
lgtm
3 years, 5 months ago (2017-06-29 00:03:31 UTC) #18
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/2926013002/140001
3 years, 5 months ago (2017-06-29 00:09:22 UTC) #20
commit-bot: I haz the power
3 years, 5 months ago (2017-06-29 01:56:19 UTC) #23
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/43ee2b1163bdee1094aac234d25f...

Powered by Google App Engine
This is Rietveld 408576698