Index: pkg/dev_compiler/bin/dartdevc.dart |
diff --git a/pkg/dev_compiler/bin/dartdevc.dart b/pkg/dev_compiler/bin/dartdevc.dart |
index 4a0ccbe410fcfff622ed5501e292d2d7a0246e5c..d514816c9465daff03e2420a0ed147e51a0d561f 100755 |
--- a/pkg/dev_compiler/bin/dartdevc.dart |
+++ b/pkg/dev_compiler/bin/dartdevc.dart |
@@ -50,7 +50,7 @@ Future main(List<String> args) async { |
if (args.contains('--persistent_worker')) { |
new _CompilerWorker(args..remove('--persistent_worker')).run(); |
} else { |
- exitCode = compile(args); |
+ exitCode = await compile(args); |
} |
} |
@@ -66,7 +66,7 @@ class _CompilerWorker extends AsyncWorkerLoop { |
var args = _startupArgs.toList()..addAll(request.arguments); |
var output = new StringBuffer(); |
- var exitCode = compile(args, printFn: output.writeln); |
+ var exitCode = await compile(args, printFn: output.writeln); |
AnalysisEngine.instance.clearCaches(); |
return new WorkResponse() |
..exitCode = exitCode |