Index: sdk/lib/_internal/compiler/implementation/dart2js.dart |
diff --git a/sdk/lib/_internal/compiler/implementation/dart2js.dart b/sdk/lib/_internal/compiler/implementation/dart2js.dart |
index 78825c5c1ad7820afcfaa3a8b603763e0c5cf556..2990a9ef7d4bef65dd19ecb92e1e4c3a38a7c7d4 100644 |
--- a/sdk/lib/_internal/compiler/implementation/dart2js.dart |
+++ b/sdk/lib/_internal/compiler/implementation/dart2js.dart |
@@ -454,8 +454,8 @@ void fail(String message) { |
Future compilerMain(List<String> arguments) { |
var root = uriPathToNative("/$LIBRARY_ROOT"); |
- arguments = |
- <String>['--library-root=${Platform.script}$root']..addAll(arguments); |
+ arguments = <String>['--library-root=${Platform.script.toFilePath()}$root'] |
+ ..addAll(arguments); |
return compile(arguments); |
} |