about summary refs log tree commit diff
path: root/scripts
diff options
context:
space:
mode:
authorKarl Meakin <karl.meakin@arm.com>2022-05-09 16:34:16 +0100
committerKarl Meakin <karl.meakin@arm.com>2022-05-09 16:34:16 +0100
commite5f011aba629bf4fc94e7faa2a0e05fd9a8c2ea6 (patch)
tree3d36d49e59efa63967e3d2921dbcddee56d3ec42 /scripts
parent25f7711fea4f83a82d54c17dff5cc5b9a2b2937b (diff)
downloadrust-e5f011aba629bf4fc94e7faa2a0e05fd9a8c2ea6.tar.gz
rust-e5f011aba629bf4fc94e7faa2a0e05fd9a8c2ea6.zip
Only enable JIT tests on x86_64
Cranelift currently only supports JIT on x86_64 targets.
Disable JIT tests on all other targets, so that failing tests are
ignored.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/tests.sh11
1 files changed, 10 insertions, 1 deletions
diff --git a/scripts/tests.sh b/scripts/tests.sh
index cd6b2181ace..9b5ffa40960 100755
--- a/scripts/tests.sh
+++ b/scripts/tests.sh
@@ -9,7 +9,16 @@ export HOST_TRIPLE=$(rustc -vV | grep host | cut -d: -f2 | tr -d " ")
 export TARGET_TRIPLE=${TARGET_TRIPLE:-$HOST_TRIPLE}
 
 export RUN_WRAPPER=''
-export JIT_SUPPORTED=1
+
+case "$TARGET_TRIPLE" in
+   x86_64*)
+      export JIT_SUPPORTED=1
+      ;;
+   *)
+      export JIT_SUPPORTED=0
+      ;;
+esac
+
 if [[ "$HOST_TRIPLE" != "$TARGET_TRIPLE" ]]; then
    export JIT_SUPPORTED=0
    if [[ "$TARGET_TRIPLE" == "aarch64-unknown-linux-gnu" ]]; then