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

Unified Diff: lib/src/run_batch.dart

Issue 2059813002: Don't set a target library in whole-program mode. (Closed) Base URL: git@github.com:dart-lang/rasta.git@type_parse_error
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/run_batch.dart
diff --git a/lib/src/run_batch.dart b/lib/src/run_batch.dart
index f8fb715cb488eac65baea17ef885de384c6d981a..50fb720aebf2c66c706c21b386d76b26fe77efa1 100644
--- a/lib/src/run_batch.dart
+++ b/lib/src/run_batch.dart
@@ -80,7 +80,11 @@ class RunBatch extends Rastask {
generateLibrary: this.options.generateLibrary);
ir.Library library = await kernel.loadLibrary(options.input);
- kernel.processWorkQueue(targetLibrary: options.input);
+ if (this.options.generateLibrary) {
+ kernel.processWorkQueue(targetLibrary: options.input);
+ } else {
+ kernel.processWorkQueue();
+ }
if (options.generateLibrary == true) {
await openWrite(options.output, (IOSink sink) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698