summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Treehugger Robot <treehugger-gerrit@google.com> 2018-08-26 16:25:19 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2018-08-26 16:25:19 +0000
commitbdf294e34a0d1d84596f46ff58924f12dd640f4c (patch)
tree668ea3b5ac28a78bb2fa09a931f8ef42a6e85906
parent0a8b3153ca58f4dfe3db74556f36c088a687b63e (diff)
parent686801f5f51881d82abdfd16aa850f95a53e38fd (diff)
Merge "Fix two mistakes in art script rewrite."
-rw-r--r--tools/art5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/art b/tools/art
index 23eb23b29f..7bd4c54a22 100644
--- a/tools/art
+++ b/tools/art
@@ -229,11 +229,14 @@ function extract_dex2oat_flags() {
shift
;;
-Ximage:*)
- DEX2OAT_BOOTIMAGE=$1
+ DEX2OAT_BOOT_IMAGE=$1
# Remove '-Ximage:' from the argument.
DEX2OAT_BOOT_IMAGE=${DEX2OAT_BOOT_IMAGE##-Ximage:}
;;
-cp)
+ # Reset any previously parsed classpath, just like dalvikvm
+ # only supports one -cp argument.
+ DEX2OAT_CLASSPATH=()
# TODO: support -classpath and CLASSPATH
local oifs=$IFS
IFS=':'