Index: lib/src/rastak.dart |
diff --git a/lib/src/rastak.dart b/lib/src/rastak.dart |
index a959a99ecd26353be1c723f6fb94c7e4139c551e..0c2e05f4bd2ea7dad8bf2889b4a37fbe754b408d 100644 |
--- a/lib/src/rastak.dart |
+++ b/lib/src/rastak.dart |
@@ -8,6 +8,7 @@ import 'dart:async' show |
Future; |
import 'dart:io' show |
+ Platform, |
kasperl
2016/05/31 17:47:04
Sort alphabetically?
ahe
2016/05/31 22:28:22
Done.
|
File, |
IOSink; |
@@ -128,9 +129,10 @@ Future<Null> main(List<String> arguments, isolateArgument) async { |
Options options = new OptionParser().parse(arguments, Uri.base); |
List<String> compilerOptions = |
options.isVerbose ? <String>['--verbose'] : <String>[]; |
+ Uri targetSpecification = Uri.base.resolveUri(Platform.script) |
+ .resolve("../dart_vm_standalone.json"); |
IoCompilerFactory factory = new IoCompilerFactory( |
- Uri.base.resolve("dart_vm_standalone.json"), compilerOptions, |
- <String, dynamic>{}); |
+ targetSpecification, compilerOptions, <String, dynamic>{}); |
(await factory.diagnostics) |
..verbose = options.isVerbose |
..showWarnings = true |