Skip to content

Commit d96fb20

Browse files
committed
ci: Only build core with -Zbuild-std
We don't need alloc or std, so save some CI time by only building `core`.
1 parent 89e0ff1 commit d96fb20

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ci/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ if [ -n "${QEMU:-}" ]; then
5151
cargo build \
5252
--manifest-path libc-test/Cargo.toml \
5353
--target "$target" \
54-
--test main ${LIBC_CI_ZBUILD_STD+"-Zbuild-std"}
54+
--test main ${LIBC_CI_ZBUILD_STD+"-Zbuild-std=core"}
5555
rm "${CARGO_TARGET_DIR}/${target}"/debug/main-*.d
5656
cp "${CARGO_TARGET_DIR}/${target}"/debug/main-* "${tmpdir}"/mount/libc-test
5757
# shellcheck disable=SC2016

ci/verify-build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ test_target() {
4848

4949
if [ "${no_dist}" != "0" ]; then
5050
# If we can't download a `core`, we need to build it
51-
cmd="$cmd -Zbuild-std=core,alloc"
51+
cmd="$cmd -Zbuild-std=core"
5252

5353
# FIXME: With `build-std` feature, `compiler_builtins` emits a lof of lint warnings.
5454
RUSTFLAGS="${RUSTFLAGS:-} -Aimproper_ctypes_definitions"

0 commit comments

Comments
 (0)