summaryrefslogtreecommitdiffstats
path: root/tools/art
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2013-01-17 10:28:23 -0800
committerElliott Hughes <enh@google.com>2013-01-17 10:28:23 -0800
commitb6f0f78b0cbf53e2d551653911f1cda96f5e456b (patch)
treebe6a4eed9f8f332cb5caadbdbf46f4193b6f4976 /tools/art
parent7db619bb2a4e01e8532a04b613745d4926b205d7 (diff)
downloadart-b6f0f78b0cbf53e2d551653911f1cda96f5e456b.tar.gz
art-b6f0f78b0cbf53e2d551653911f1cda96f5e456b.tar.bz2
art-b6f0f78b0cbf53e2d551653911f1cda96f5e456b.zip
Make the tools/art script appear to work from any directory.
This isn't the real fix, and it means that your oatexec will be running from $(ANDROID_BUILD_TOP) rather than your current directory, but it lets me use a modified vogar that just calls "art" instead of "dalvikvm", as long as I use absolute paths. Change-Id: Iac35fcd2114316a06780b4f1f27eee9fbe95282d
Diffstat (limited to 'tools/art')
-rwxr-xr-xtools/art1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/art b/tools/art
index 1e983c098..4f419b2ab 100755
--- a/tools/art
+++ b/tools/art
@@ -35,6 +35,7 @@ done
unset ANDROID_PRODUCT_OUT # avoid defaulting dex2oat --host-prefix to target output
mkdir -p /tmp/android-data/art-cache
+cd $ANDROID_BUILD_TOP
ANDROID_DATA=/tmp/android-data\
ANDROID_ROOT=$ANDROID_HOST_OUT\
LD_LIBRARY_PATH=$ANDROID_HOST_OUT/lib\