Index: dart/utils/compiler/build_helper.dart |
diff --git a/dart/utils/compiler/build_helper.dart b/dart/utils/compiler/build_helper.dart |
index e4fa9f936a4c7512dfe1cd96487a3c0218252b80..e304517ef9bac2dd6689ba22a570e449be460844 100644 |
--- a/dart/utils/compiler/build_helper.dart |
+++ b/dart/utils/compiler/build_helper.dart |
@@ -79,8 +79,9 @@ writeScript(Uri uri, List<String> scripts) { |
List<String> buildScript(String name, |
Uri dartUri, Uri dartVmLocation, |
String entrypoint, String options) { |
+ bool isWindows = (Platform.operatingSystem == 'windows'); |
Uri uri = dartUri.resolve(entrypoint); |
- String path = relativize(dartVmLocation, uri); |
+ String path = relativize(dartVmLocation, uri, isWindows); |
String pathWin = path.replaceAll("/", "\\"); |
print('dartUri = $dartUri'); |