summaryrefslogtreecommitdiff
path: root/ci/run-docker.sh
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev@gmail.com>2020-07-25 07:09:43 +0900
committerYuki Okushi <huyuumi.dev@gmail.com>2020-07-25 23:57:46 +0900
commit45317a0c2c12b51be013cd5194dd2a89c092cb41 (patch)
tree68fa24601f0ce4005c011d46878eb02e0e989dcc /ci/run-docker.sh
parent83c304407d14ab7f6fde129be3d5e4c8b0d14512 (diff)
downloadrust-libc-45317a0c2c12b51be013cd5194dd2a89c092cb41.tar.gz
Use `build-std` feature instead of using `cargo-xbuild`
Diffstat (limited to 'ci/run-docker.sh')
-rwxr-xr-xci/run-docker.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/ci/run-docker.sh b/ci/run-docker.sh
index 8440a002d4..648eafcd94 100755
--- a/ci/run-docker.sh
+++ b/ci/run-docker.sh
@@ -62,7 +62,6 @@ build_switch() {
kvm=""
fi
- cargo +nightly install cargo-xbuild
cp "$(which rustup)" "$(rustc --print sysroot)/bin"
docker run \
@@ -82,7 +81,7 @@ build_switch() {
libc \
sh -c "HOME=/tmp RUSTUP_HOME=/tmp PATH=\$PATH:/rust/bin rustup default nightly \
&& rustup component add rust-src --target ci/switch.json \
- && cargo xbuild --target ci/switch.json"
+ && cargo build -Z build-std=core,alloc --target ci/switch.json"
}
if [ -z "${1}" ]; then