aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDan Bornstein <danfuzz@android.com>2010-09-15 14:44:01 -0700
committerDan Bornstein <danfuzz@android.com>2010-09-15 14:44:01 -0700
commit4c5d26bcfe9027a6e350af70a67cf2b584534509 (patch)
tree2f9761572acb29676f6a9edac5e43b78b2fad076 /tools
parentdef30fc213d62fc93edce2ca63967ab93380075d (diff)
Make the app processing variant of dex-preopt more consistent.
In particular, make it take paths relative to the product, just like how the bootclasspath is found and processed. Change-Id: I3f2a98a6bf6bbcf3145cf9be8edc1c3be4d763b9
Diffstat (limited to 'tools')
-rwxr-xr-xtools/dex-preopt3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/dex-preopt b/tools/dex-preopt
index b2bc2c4d0..08c63705d 100755
--- a/tools/dex-preopt
+++ b/tools/dex-preopt
@@ -254,7 +254,8 @@ if [ "${bootstrap}" = "yes" ]; then
done
else
echo "Processing ${inputFile}" 1>&2
- "${dexopt}" --preopt "${inputFile}" "${outputFile}" "${optimizeFlags}"
+ "${dexopt}" --preopt "${product}/${inputFile}" "${product}/${outputFile}" \
+ "${optimizeFlags}"
status="$?"
if [ "${status}" != "0" ]; then