diff options
author | Elliott Hughes <enh@google.com> | 2011-08-18 09:52:17 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2011-08-18 09:59:58 -0700 |
commit | 4b3b727d405da366f480f438e9b968ee09bf958d (patch) | |
tree | 2330063ea97fdc96b5021ec05cc680454ee0bf46 /tools | |
parent | b765be0d656c3073402693aeaf64e95a0e49f218 (diff) | |
download | art-4b3b727d405da366f480f438e9b968ee09bf958d.zip art-4b3b727d405da366f480f438e9b968ee09bf958d.tar.gz art-4b3b727d405da366f480f438e9b968ee09bf958d.tar.bz2 |
Add vogar-like --invoke-with to 'art', and fix a bug valgrind finds.
Also add -d to run aexecd.
Change-Id: I38fefd9ad2e08b42039cb2a09351b4e6e30a9c5c
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/art | 21 |
1 files changed, 20 insertions, 1 deletions
@@ -14,11 +14,30 @@ # See the License for the specific language governing permissions and # limitations under the License. +aexec=aexec +invoke_with= + +while true; do + if [ "$1" = "--invoke-with" ]; then + shift + invoke_with="$1" + shift + elif [ "$1" = "-d" ]; then + aexec="aexecd" + shift + elif expr "$1" : "--" >/dev/null 2>&1; then + echo "unknown option: $1" 1>&2 + exit 1 + else + break + fi +done + mkdir -p /tmp/android-data/art-cache ANDROID_DATA=/tmp/android-data \ ANDROID_ROOT=$ANDROID_BUILD_TOP/out/host/linux-x86 \ LD_LIBRARY_PATH=$ANDROID_BUILD_TOP/out/host/linux-x86/lib \ -$ANDROID_BUILD_TOP/out/host/linux-x86/bin/aexec \ +$invoke_with $ANDROID_BUILD_TOP/out/host/linux-x86/bin/$aexec \ -Xbootclasspath\ :$ANDROID_BUILD_TOP/out/host/linux-x86/framework/core-hostdex.jar\ :$ANDROID_BUILD_TOP/out/host/linux-x86/framework/core-junit-hostdex.jar\ |