Index: utils/compiler/create_snapshot.dart |
diff --git a/utils/compiler/create_snapshot.dart b/utils/compiler/create_snapshot.dart |
index 3b6cbfd2d87079626becd75d97f50bbe03e07528..7796197ab3a5990c9765b6a34871993b09bb0b69 100644 |
--- a/utils/compiler/create_snapshot.dart |
+++ b/utils/compiler/create_snapshot.dart |
@@ -83,7 +83,8 @@ void main(List<String> arguments) { |
if (!args.containsKey("output_dir")) throw "Please specify output_dir"; |
if (!args.containsKey("package_root")) throw "Please specify package_root"; |
- var scriptFile = new Uri.file(new File(Platform.script).fullPathSync()); |
+ var scriptFile = |
+ new Uri.file(new File(Platform.script).resolveSymbolicLinksSync()); |
var path = scriptFile.resolve("."); |
var rootPath = path.resolve("../.."); |
getSnapshotGenerationFile(args, rootPath).then((result) { |