Skip to content

Commit e5f011a

Browse files
committed
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.
1 parent 25f7711 commit e5f011a

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

scripts/tests.sh

+10-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,16 @@ export HOST_TRIPLE=$(rustc -vV | grep host | cut -d: -f2 | tr -d " ")
99
export TARGET_TRIPLE=${TARGET_TRIPLE:-$HOST_TRIPLE}
1010

1111
export RUN_WRAPPER=''
12-
export JIT_SUPPORTED=1
12+
13+
case "$TARGET_TRIPLE" in
14+
x86_64*)
15+
export JIT_SUPPORTED=1
16+
;;
17+
*)
18+
export JIT_SUPPORTED=0
19+
;;
20+
esac
21+
1322
if [[ "$HOST_TRIPLE" != "$TARGET_TRIPLE" ]]; then
1423
export JIT_SUPPORTED=0
1524
if [[ "$TARGET_TRIPLE" == "aarch64-unknown-linux-gnu" ]]; then

0 commit comments

Comments
 (0)