| 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) {
|
|
|