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

Issue 1900813002: Global compile option (Closed)

Created:
4 years, 8 months ago by vsm
Modified:
4 years, 7 months ago
CC:
dev-compiler+reviews_dartlang.org
Base URL:
https://github.com/dart-lang/dev_compiler.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Global compile option This enables us to compile, e.g., all angular samples in one shot (i.e., as one mega module). This is intended for testing / transitioning, so perhaps the name should better reflect that.

Patch Set 1 #

Total comments: 13
Unified diffs Side-by-side diffs Delta from patch set Stats (+201 lines, -0 lines) Patch
A bin/commands/global_compile.dart View 1 chunk +198 lines, -0 lines 9 comments Download
M bin/dartdevc.dart View 1 chunk +2 lines, -0 lines 1 comment Download
M pubspec.yaml View 1 chunk +1 line, -0 lines 3 comments Download

Messages

Total messages: 9 (3 generated)
vsm
https://codereview.chromium.org/1900813002/diff/1/pubspec.yaml File pubspec.yaml (right): https://codereview.chromium.org/1900813002/diff/1/pubspec.yaml#newcode30 pubspec.yaml:30: yaml: ^2.1.2 Not sure I'm abusing convention here, but ...
4 years, 8 months ago (2016-04-18 18:26:38 UTC) #1
Harry Terkelsen
https://codereview.chromium.org/1900813002/diff/1/pubspec.yaml File pubspec.yaml (right): https://codereview.chromium.org/1900813002/diff/1/pubspec.yaml#newcode30 pubspec.yaml:30: yaml: ^2.1.2 On 2016/04/18 18:26:38, vsm wrote: > Not ...
4 years, 8 months ago (2016-04-18 18:30:44 UTC) #3
vsm
On 2016/04/18 18:30:44, Harry Terkelsen wrote: > https://codereview.chromium.org/1900813002/diff/1/pubspec.yaml > File pubspec.yaml (right): > > https://codereview.chromium.org/1900813002/diff/1/pubspec.yaml#newcode30 ...
4 years, 8 months ago (2016-04-18 19:51:23 UTC) #4
vsm
4 years, 8 months ago (2016-04-18 19:51:48 UTC) #7
Jennifer Messerly
A few thoughts. Also this could use a test or someone (probably me) will almost ...
4 years, 8 months ago (2016-04-18 21:45:46 UTC) #8
Jennifer Messerly
4 years, 8 months ago (2016-04-18 21:49:30 UTC) #9
https://codereview.chromium.org/1900813002/diff/1/bin/commands/global_compile...
File bin/commands/global_compile.dart (right):

https://codereview.chromium.org/1900813002/diff/1/bin/commands/global_compile...
bin/commands/global_compile.dart:75: new ModuleCompiler.withContext(context),
On 2016/04/18 21:45:45, John Messerly wrote:
> IMO, it would be better to have it use the command line interface. That way it
> won't rely on implementation details and is more like what a build tool would
> do.
> 
> Unlike a watcher/server, this is really just a single compile, so it won't
> really benefit from keeping the compiler warm anyway.

addendum -- a lot depends on where we are going with this.

For a quick hack to get Angular tests working, I don't think we need to check it
in to dev_compiler repo at all. It'll be much better to keep over there. So
that's one option.

If this is a longer term "build" command UI we want to support, then it makes
sense to have it deeply integrated, and try and be smarter about the compilation
units it handles (e.g. per-package).

If we'd rather avoid the long term questions, IMHO it would be better to keep it
localized in the tests, not add it as a fully public command interface. If it's
fully public we need to think about these hard UI questions now.

Powered by Google App Engine
This is Rietveld 408576698