@@ -53,7 +53,7 @@ if [ "$QEMU" != "" ]; then
5353 cargo build \
5454 --manifest-path libc-test/Cargo.toml \
5555 --target " ${TARGET} " \
56- --test main
56+ --test main ${LIBC_CI_ZBUILD_STD+ " -Zbuild-std " }
5757 rm " ${CARGO_TARGET_DIR} /${TARGET} " /debug/main-* .d
5858 cp " ${CARGO_TARGET_DIR} /${TARGET} " /debug/main-* " ${tmpdir} " /mount/libc-test
5959 # shellcheck disable=SC2016
@@ -91,17 +91,17 @@ if [ "$TARGET" = "s390x-unknown-linux-gnu" ]; then
9191 until [ $n -ge $N ]
9292 do
9393 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
9595 passed=$(( passed+ 1 ))
9696 continue
9797 fi
9898 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
100100 passed=$(( passed+ 1 ))
101101 continue
102102 fi
103103 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
105105 break
106106 fi
107107 fi
@@ -110,10 +110,10 @@ if [ "$TARGET" = "s390x-unknown-linux-gnu" ]; then
110110 done
111111else
112112 cargo test --no-default-features --manifest-path libc-test/Cargo.toml \
113- --target " ${TARGET} "
113+ --target " ${TARGET} " ${LIBC_CI_ZBUILD_STD+ " -Zbuild-std " }
114114
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 " }
116116
117117 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 " }
119119fi
0 commit comments