Try to fix nightly CI

This commit is contained in:
Alex Crichton 2015-10-21 10:04:09 -07:00
parent cc12d2b2d3
commit a1da67dbaa
1 changed files with 5 additions and 1 deletions

View File

@ -69,9 +69,13 @@ case "$TARGET" in
*)
# Download the rustlib folder from the relevant portion of main distribution's
# tarballs.
pkg=rustc
if [ "$TRAVIS_RUST_VERSION" = "nightly" ]; then
pkg=rust-std
fi
curl -s $MAIN_TARGETS/rust-$TRAVIS_RUST_VERSION-$HOST.tar.gz | \
tar xzf - -C $HOME/rust/lib/rustlib --strip-components=4 \
rust-$TRAVIS_RUST_VERSION-$HOST/rustc/lib/rustlib/$HOST
rust-$TRAVIS_RUST_VERSION-$HOST/$pkg/lib/rustlib/$HOST
TARGET=$HOST
# clang has better error messages and implements alignof more broadly