summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Jiakai Zhang <jiakaiz@google.com> 2025-03-24 09:17:53 -0700
committer Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> 2025-03-24 09:17:53 -0700
commitd83a980d97373bbc33eaa29905d9223765d371f9 (patch)
tree941337b1faa3c3cea03168dc82bd55b73569d84a
parent0c73730c543a6cd0bd8eb87f51eba2b87ffd735d (diff)
parentf675a98ccbc261c73ab9f12044541aca617f3b57 (diff)
Fix `art` script for Golem. am: f675a98ccb
Original change: https://android-review.googlesource.com/c/platform/art/+/3557943 Change-Id: Ia15851bc0ba497cdbceb877f328ca8f8282e8f76 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rwxr-xr-xtools/art9
1 files changed, 2 insertions, 7 deletions
diff --git a/tools/art b/tools/art
index a4ae3d57e5..f25ac49492 100755
--- a/tools/art
+++ b/tools/art
@@ -170,7 +170,8 @@ function run_dex2oat() {
done
# Create oat file directory.
verbose_run mkdir -p $(dirname "$dex_file")/oat/$ISA
- local oat_file="${dex_file:1}"
+ local oat_file="$(realpath $dex_file)"
+ local oat_file="${oat_file:1}"
local oat_file="${oat_file//\//@}"
if [[ $dex_file != *.dex ]]; then
local oat_file=$ANDROID_DATA/dalvik-cache/$ISA/${oat_file}@classes.dex
@@ -628,9 +629,6 @@ if [ "$JIT_PROFILE" = "yes" ]; then
&> "$ANDROID_DATA/profile_gen.log"
EXIT_STATUS=$?
- # Remove generated oat files.
- cleanup_oat_directory_for_classpath "$@"
-
if [ $EXIT_STATUS != 0 ]; then
echo "Profile run failed: " >&2
cat "$ANDROID_DATA/profile_gen.log" >&2
@@ -673,9 +671,6 @@ if [ "$PERF" != "" ]; then
echo "Perf data saved in: $ANDROID_DATA/perf.data. Generated oat files not removed."
fi
else
- # Perf needs the odex files we generate for proper symbolization, so only remove them
- # when not running with perf.
- cleanup_oat_directory_for_classpath "$@"
# Perf output is placed under $ANDROID_DATA so not cleaned when perf options used.
clean_android_data
fi