Skip to content

Commit d68b50e

Browse files
committed
Small change to test script
1 parent 8a59808 commit d68b50e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

scripts/config.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ TARGET_TRIPLE=$HOST_TRIPLE
1717

1818
linker=''
1919
RUN_WRAPPER=''
20+
export JIT_SUPPORTED=1
2021
if [[ "$HOST_TRIPLE" != "$TARGET_TRIPLE" ]]; then
22+
export JIT_SUPPORTED=0
2123
if [[ "$TARGET_TRIPLE" == "aarch64-unknown-linux-gnu" ]]; then
2224
# We are cross-compiling for aarch64. Use the correct linker and run tests in qemu.
2325
linker='-Clinker=aarch64-linux-gnu-gcc'

test.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ $RUSTC example/mini_core.rs --crate-name mini_core --crate-type lib,dylib --targ
2626
echo "[BUILD] example"
2727
$RUSTC example/example.rs --crate-type lib --target $TARGET_TRIPLE
2828

29-
if [[ "$HOST_TRIPLE" = "$TARGET_TRIPLE" ]]; then
29+
if [[ "$JIT_SUPPORTED" = "1" ]]; then
3030
echo "[JIT] mini_core_hello_world"
3131
CG_CLIF_JIT=1 CG_CLIF_JIT_ARGS="abc bcd" $RUSTC --crate-type bin -Cprefer-dynamic example/mini_core_hello_world.rs --cfg jit --target $HOST_TRIPLE
3232
else
@@ -49,7 +49,7 @@ echo "[AOT] alloc_example"
4949
$RUSTC example/alloc_example.rs --crate-type bin --target $TARGET_TRIPLE
5050
$RUN_WRAPPER ./target/out/alloc_example
5151

52-
if [[ "$HOST_TRIPLE" = "$TARGET_TRIPLE" ]]; then
52+
if [[ "$JIT_SUPPORTED" = "1" ]]; then
5353
echo "[JIT] std_example"
5454
CG_CLIF_JIT=1 $RUSTC --crate-type bin -Cprefer-dynamic example/std_example.rs --target $HOST_TRIPLE
5555
else

0 commit comments

Comments
 (0)