@@ -8,59 +8,59 @@ MY_RUSTC=$RUSTC" "$RUSTFLAGS" -L crate=target/out --out-dir target/out -Cdebugin
8
8
9
9
function no_sysroot_tests() {
10
10
echo " [BUILD] mini_core"
11
- $MY_RUSTC example/mini_core.rs --crate-name mini_core --crate-type lib,dylib --target $TARGET_TRIPLE
11
+ $MY_RUSTC example/mini_core.rs --crate-name mini_core --crate-type lib,dylib --target " $TARGET_TRIPLE "
12
12
13
13
echo " [BUILD] example"
14
- $MY_RUSTC example/example.rs --crate-type lib --target $TARGET_TRIPLE
14
+ $MY_RUSTC example/example.rs --crate-type lib --target " $TARGET_TRIPLE "
15
15
16
16
if [[ " $JIT_SUPPORTED " = " 1" ]]; then
17
17
echo " [JIT] mini_core_hello_world"
18
- CG_CLIF_JIT_ARGS=" abc bcd" $MY_RUSTC --jit example/mini_core_hello_world.rs --cfg jit --target $HOST_TRIPLE
18
+ CG_CLIF_JIT_ARGS=" abc bcd" $MY_RUSTC --jit example/mini_core_hello_world.rs --cfg jit --target " $HOST_TRIPLE "
19
19
else
20
20
echo " [JIT] mini_core_hello_world (skipped)"
21
21
fi
22
22
23
23
echo " [AOT] mini_core_hello_world"
24
- $MY_RUSTC example/mini_core_hello_world.rs --crate-name mini_core_hello_world --crate-type bin -g --target $TARGET_TRIPLE
24
+ $MY_RUSTC example/mini_core_hello_world.rs --crate-name mini_core_hello_world --crate-type bin -g --target " $TARGET_TRIPLE "
25
25
$RUN_WRAPPER ./target/out/mini_core_hello_world abc bcd
26
26
# (echo "break set -n main"; echo "run"; sleep 1; echo "si -c 10"; sleep 1; echo "frame variable") | lldb -- ./target/out/mini_core_hello_world abc bcd
27
27
28
28
echo " [AOT] arbitrary_self_types_pointers_and_wrappers"
29
- $MY_RUSTC example/arbitrary_self_types_pointers_and_wrappers.rs --crate-name arbitrary_self_types_pointers_and_wrappers --crate-type bin --target $TARGET_TRIPLE
29
+ $MY_RUSTC example/arbitrary_self_types_pointers_and_wrappers.rs --crate-name arbitrary_self_types_pointers_and_wrappers --crate-type bin --target " $TARGET_TRIPLE "
30
30
$RUN_WRAPPER ./target/out/arbitrary_self_types_pointers_and_wrappers
31
31
}
32
32
33
33
function base_sysroot_tests() {
34
34
echo " [AOT] alloc_example"
35
- $MY_RUSTC example/alloc_example.rs --crate-type bin --target $TARGET_TRIPLE
35
+ $MY_RUSTC example/alloc_example.rs --crate-type bin --target " $TARGET_TRIPLE "
36
36
$RUN_WRAPPER ./target/out/alloc_example
37
37
38
38
if [[ " $JIT_SUPPORTED " = " 1" ]]; then
39
39
echo " [JIT] std_example"
40
- $MY_RUSTC --jit example/std_example.rs --target $HOST_TRIPLE
40
+ $MY_RUSTC --jit example/std_example.rs --target " $HOST_TRIPLE "
41
41
else
42
42
echo " [JIT] std_example (skipped)"
43
43
fi
44
44
45
45
echo " [AOT] dst_field_align"
46
46
# FIXME Re-add -Zmir-opt-level=2 once rust-lang/rust#67529 is fixed.
47
- $MY_RUSTC example/dst-field-align.rs --crate-name dst_field_align --crate-type bin --target $TARGET_TRIPLE
47
+ $MY_RUSTC example/dst-field-align.rs --crate-name dst_field_align --crate-type bin --target " $TARGET_TRIPLE "
48
48
$RUN_WRAPPER ./target/out/dst_field_align || (echo $? ; false)
49
49
50
50
echo " [AOT] std_example"
51
- $MY_RUSTC example/std_example.rs --crate-type bin --target $TARGET_TRIPLE
51
+ $MY_RUSTC example/std_example.rs --crate-type bin --target " $TARGET_TRIPLE "
52
52
$RUN_WRAPPER ./target/out/std_example arg
53
53
54
54
echo " [AOT] subslice-patterns-const-eval"
55
- $MY_RUSTC example/subslice-patterns-const-eval.rs --crate-type bin -Cpanic=abort --target $TARGET_TRIPLE
55
+ $MY_RUSTC example/subslice-patterns-const-eval.rs --crate-type bin -Cpanic=abort --target " $TARGET_TRIPLE "
56
56
$RUN_WRAPPER ./target/out/subslice-patterns-const-eval
57
57
58
58
echo " [AOT] track-caller-attribute"
59
- $MY_RUSTC example/track-caller-attribute.rs --crate-type bin -Cpanic=abort --target $TARGET_TRIPLE
59
+ $MY_RUSTC example/track-caller-attribute.rs --crate-type bin -Cpanic=abort --target " $TARGET_TRIPLE "
60
60
$RUN_WRAPPER ./target/out/track-caller-attribute
61
61
62
62
echo " [AOT] mod_bench"
63
- $MY_RUSTC example/mod_bench.rs --crate-type bin --target $TARGET_TRIPLE
63
+ $MY_RUSTC example/mod_bench.rs --crate-type bin --target " $TARGET_TRIPLE "
64
64
$RUN_WRAPPER ./target/out/mod_bench
65
65
66
66
pushd rand
@@ -73,13 +73,13 @@ function extended_sysroot_tests() {
73
73
pushd simple-raytracer
74
74
if [[ " $HOST_TRIPLE " = " $TARGET_TRIPLE " ]]; then
75
75
echo " [BENCH COMPILE] ebobby/simple-raytracer"
76
- hyperfine --runs ${RUN_RUNS:- 10} --warmup 1 --prepare " cargo clean" \
76
+ hyperfine --runs " ${RUN_RUNS:- 10} " --warmup 1 --prepare " cargo clean" \
77
77
" RUSTC=rustc RUSTFLAGS='' cargo build" \
78
78
" ../build/cargo.sh build"
79
79
80
80
echo " [BENCH RUN] ebobby/simple-raytracer"
81
81
cp ./target/debug/main ./raytracer_cg_clif
82
- hyperfine --runs ${RUN_RUNS:- 10} ./raytracer_cg_llvm ./raytracer_cg_clif
82
+ hyperfine --runs " ${RUN_RUNS:- 10} " ./raytracer_cg_llvm ./raytracer_cg_clif
83
83
else
84
84
echo " [BENCH COMPILE] ebobby/simple-raytracer (skipped)"
85
85
echo " [COMPILE] ebobby/simple-raytracer"
0 commit comments