diff options
author | Nicolas Geoffray <ngeoffray@google.com> | 2014-07-02 14:57:53 +0100 |
---|---|---|
committer | Nicolas Geoffray <ngeoffray@google.com> | 2014-07-02 14:58:41 +0100 |
commit | fc3c67a6c45553cb4d21a9b40e99ffb345baf9b6 (patch) | |
tree | d2e9a903dc579ab09122455e80b2e04ea94cd3d6 /tools | |
parent | ea7ead2d98d812a4a8967934630cacfba41dc552 (diff) | |
download | art-fc3c67a6c45553cb4d21a9b40e99ffb345baf9b6.zip art-fc3c67a6c45553cb4d21a9b40e99ffb345baf9b6.tar.gz art-fc3c67a6c45553cb4d21a9b40e99ffb345baf9b6.tar.bz2 |
Fix art-host rule and art script after build changes.
Change-Id: Ideb6a83d71cda126d94ad01965b2dcf5005d449a
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/art | 15 |
1 files changed, 13 insertions, 2 deletions
@@ -42,17 +42,28 @@ function follow_links() { echo "$file" } +DALVIKVM_EXECUTABLE=$ANDROID_HOST_OUT/bin/dalvikvm + +function find_libdir() { + if [ "$(readlink "$DALVIKVM_EXECUTABLE")" = "dalvikvm64" ]; then + echo "lib64" + else + echo "lib" + fi +} + PROG_NAME="$(follow_links "$BASH_SOURCE")" PROG_DIR="$(cd "${PROG_NAME%/*}" ; pwd -P)" ANDROID_BUILD_TOP="$(cd "${PROG_DIR}/../../../../" ; pwd -P)/" ANDROID_HOST_OUT=$PROG_DIR/.. ANDROID_DATA=$PWD/android-data$$ +LD_LIBRARY_PATH=$ANDROID_HOST_OUT/"$(find_libdir)" mkdir -p $ANDROID_DATA/dalvik-cache/{x86,x86_64} ANDROID_DATA=$ANDROID_DATA \ ANDROID_ROOT=$ANDROID_HOST_OUT \ - LD_LIBRARY_PATH=$ANDROID_HOST_OUT/lib \ - $invoke_with $ANDROID_HOST_OUT/bin/dalvikvm $lib \ + LD_LIBRARY_PATH=$LD_LIBRARY_PATH \ + $invoke_with $DALVIKVM_EXECUTABLE $lib \ -Ximage:$ANDROID_HOST_OUT/framework/core.art \ "$@" EXIT_STATUS=$? |