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

Unified Diff: lib/src/rastak.dart

Issue 2027593003: Resolve target specification relative to script. (Closed) Base URL: git@github.com:dart-lang/rasta.git@master
Patch Set: Created 4 years, 7 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/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
« 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