Index: sdk/bin/dartanalyzer |
=================================================================== |
--- sdk/bin/dartanalyzer (revision 35880) |
+++ sdk/bin/dartanalyzer (working copy) |
@@ -20,9 +20,12 @@ |
# Handle the case where dart-sdk/bin has been symlinked to. |
BIN_DIR="$(cd "${PROG_NAME%/*}" ; pwd -P)" |
+SDK_DIR="$(cd "${BIN_DIR}/.." ; pwd -P)" |
+SDK_ARG="--dart-sdk=$SDK_DIR" |
+ |
SNAPSHOT="$BIN_DIR/snapshots/dartanalyzer.dart.snapshot" |
# We are running the snapshot in the built SDK. |
DART="$BIN_DIR/dart" |
-exec "$DART" "$SNAPSHOT" "$@" |
+exec "$DART" "$SNAPSHOT" "$SDK_ARG" "$@" |