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

Unified Diff: sdk/bin/dartanalyzer

Issue 273863002: Add dart-sdk argument when calling the dart based analyzer in the created sdk (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 7 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 | « no previous file | sdk/bin/dartanalyzer.bat » ('j') | sdk/bin/dartanalyzer.bat » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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" "$@"
« no previous file with comments | « no previous file | sdk/bin/dartanalyzer.bat » ('j') | sdk/bin/dartanalyzer.bat » ('J')

Powered by Google App Engine
This is Rietveld 408576698