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

Unified Diff: dart/utils/compiler/build_helper.dart

Issue 10914094: Improve [relativize] for Windows. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 3 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 | « dart/tests/compiler/dart2js/uri_extras_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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');
« no previous file with comments | « dart/tests/compiler/dart2js/uri_extras_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698