diff options
| author | 2016-05-10 10:01:22 -0700 | |
|---|---|---|
| committer | 2016-05-10 10:41:46 -0700 | |
| commit | 10bc5a4e07ac51cb1e6ba1af7ec0cec1f6821c58 (patch) | |
| tree | 5e608d945f6a2a0b9637505a9fc4fcc3e48b6f17 | |
| parent | 36a94ab70d4ae1ce239022a5841abf3ffe1196e3 (diff) | |
Revert "Revert "Make run-test default to optimizing compiler.""
This reverts commit 4650c939e8590b2d421241023e359260b1b59bf1.
Change-Id: I3814c6a579d3d88222b53d7ae63a2d4b03b620a7
| -rwxr-xr-x | test/run-test | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/test/run-test b/test/run-test index 047e3fb606..2710ea32b1 100755 --- a/test/run-test +++ b/test/run-test @@ -122,10 +122,12 @@ never_clean="no" have_dex2oat="yes" have_patchoat="yes" have_image="yes" -image_suffix="" pic_image_suffix="" multi_image_suffix="" android_root="/system" +# By default we will use optimizing. +image_args="" +image_suffix="-optimizing" while true; do if [ "x$1" = "x--host" ]; then @@ -249,18 +251,18 @@ while true; do image_suffix="-interpreter" shift elif [ "x$1" = "x--jit" ]; then - run_args="${run_args} --jit" + image_args="--jit" image_suffix="-jit" shift elif [ "x$1" = "x--optimizing" ]; then - run_args="${run_args} -Xcompiler-option --compiler-backend=Optimizing" + image_args="-Xcompiler-option --compiler-backend=Optimizing" image_suffix="-optimizing" shift elif [ "x$1" = "x--no-verify" ]; then run_args="${run_args} --no-verify" shift elif [ "x$1" = "x--verify-soft-fail" ]; then - run_args="${run_args} --verify-soft-fail" + image_args="--verify-soft-fail" image_suffix="-interp-ac" shift elif [ "x$1" = "x--no-optimize" ]; then @@ -349,6 +351,7 @@ while true; do fi done +run_args="${run_args} ${image_args}" # Allocate file descriptor real_stderr and redirect it to the shell's error # output (fd 2). if [ ${BASH_VERSINFO[1]} -ge 4 ] && [ ${BASH_VERSINFO[2]} -ge 1 ]; then |