@@ -53,7 +53,7 @@ if [ "$QEMU" != "" ]; then
53
53
cargo build \
54
54
--manifest-path libc-test/Cargo.toml \
55
55
--target " ${TARGET} " \
56
- --test main
56
+ --test main ${LIBC_CI_ZBUILD_STD+ " -Zbuild-std " }
57
57
rm " ${CARGO_TARGET_DIR} /${TARGET} " /debug/main-* .d
58
58
cp " ${CARGO_TARGET_DIR} /${TARGET} " /debug/main-* " ${tmpdir} " /mount/libc-test
59
59
# shellcheck disable=SC2016
@@ -91,17 +91,17 @@ if [ "$TARGET" = "s390x-unknown-linux-gnu" ]; then
91
91
until [ $n -ge $N ]
92
92
do
93
93
if [ " $passed " = " 0" ]; then
94
- if cargo test --no-default-features --manifest-path libc-test/Cargo.toml --target " ${TARGET} " ; then
94
+ if cargo test --no-default-features --manifest-path libc-test/Cargo.toml --target " ${TARGET} " ${LIBC_CI_ZBUILD_STD+ " -Zbuild-std " } ; then
95
95
passed=$(( passed+ 1 ))
96
96
continue
97
97
fi
98
98
elif [ " $passed " = " 1" ]; then
99
- if cargo test --manifest-path libc-test/Cargo.toml --target " ${TARGET} " ; then
99
+ if cargo test --manifest-path libc-test/Cargo.toml --target " ${TARGET} " ${LIBC_CI_ZBUILD_STD+ " -Zbuild-std " } ; then
100
100
passed=$(( passed+ 1 ))
101
101
continue
102
102
fi
103
103
elif [ " $passed " = " 2" ]; then
104
- if cargo test --features extra_traits --manifest-path libc-test/Cargo.toml --target " ${TARGET} " ; then
104
+ if cargo test --features extra_traits --manifest-path libc-test/Cargo.toml --target " ${TARGET} " ${LIBC_CI_ZBUILD_STD+ " -Zbuild-std " } ; then
105
105
break
106
106
fi
107
107
fi
@@ -110,10 +110,10 @@ if [ "$TARGET" = "s390x-unknown-linux-gnu" ]; then
110
110
done
111
111
else
112
112
cargo test --no-default-features --manifest-path libc-test/Cargo.toml \
113
- --target " ${TARGET} "
113
+ --target " ${TARGET} " ${LIBC_CI_ZBUILD_STD+ " -Zbuild-std " }
114
114
115
- cargo test --manifest-path libc-test/Cargo.toml --target " ${TARGET} "
115
+ cargo test --manifest-path libc-test/Cargo.toml --target " ${TARGET} " ${LIBC_CI_ZBUILD_STD+ " -Zbuild-std " }
116
116
117
117
RUST_BACKTRACE=1 cargo test --features extra_traits --manifest-path libc-test/Cargo.toml \
118
- --target " ${TARGET} "
118
+ --target " ${TARGET} " ${LIBC_CI_ZBUILD_STD+ " -Zbuild-std " }
119
119
fi
0 commit comments