Skip to content

Commit 22bb4e4

Browse files
committed
Merge pull request rust-lang#267 from alexcrichton/rustup
Use rustup to add targets, not manual curl
2 parents 1e6a354 + 621aa7c commit 22bb4e4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ci/run-travis.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,9 @@ cp ci/cargo-config .cargo/config
109109
# Next up we need to install the standard library for the version of Rust that
110110
# we're testing.
111111
if [ "$TRAVIS" = "true" ]; then
112-
curl -s $MAIN_TARGETS/rust-std-$TRAVIS_RUST_VERSION-$TARGET.tar.gz | \
113-
tar xzf - -C $HOME/rust/lib/rustlib --strip-components=4 \
114-
rust-std-$TRAVIS_RUST_VERSION-$TARGET/rust-std-$TARGET/lib/rustlib/$TARGET
112+
curl https://static.rust-lang.org/rustup.sh | \
113+
sh -s -- --add-target=$TARGET --disable-sudo -y \
114+
--prefix=`rustc --print sysroot`
115115
fi
116116

117117
# If we're testing with a docker image, then run tests entirely within that

0 commit comments

Comments
 (0)