Fix mini-debug-info generation for JIT tests
The info was missing if prebuilds were disabled and JIT was used.
Test: Fixes some missing backtraces in gcstess test.
Change-Id: I024e2d5be1a1274808739951ef6f0108c83bf9ff
diff --git a/test/etc/run-test-jar b/test/etc/run-test-jar
index 418dd10..220b7c4 100755
--- a/test/etc/run-test-jar
+++ b/test/etc/run-test-jar
@@ -910,6 +910,9 @@
fi
fi
+# Enable mini-debug-info for JIT (if JIT is used).
+FLAGS="$FLAGS -Xcompiler-option --generate-mini-debug-info"
+
if [ "$PREBUILD" = "y" ]; then
mkdir_locations="${mkdir_locations} ${DEX_LOCATION}/oat/$ISA"
if [ "$APP_IMAGE" = "y" ]; then
@@ -933,9 +936,6 @@
dex2oat_cmdline="${dex2oat_cmdline} --instruction-set-features=${INSTRUCTION_SET_FEATURES}"
fi
- # Enable mini-debug-info for JIT (if JIT is used).
- FLAGS="$FLAGS -Xcompiler-option --generate-mini-debug-info"
-
# Add in a timeout. This is important for testing the compilation/verification time of
# pathological cases.
# Note: as we don't know how decent targets are (e.g., emulator), only do this on the host for