Pin rustc to a date with known snapshots

I don't really expect all builders of cargo to be forced to use this rustc, and
I expect this to update frequently, but it will allow cargo PRs to land without
forcing a "put out the fires" fix for all nightly incompatibilities all at once.
This will allow rust upgrades to land separately and be reviewed separately.
This commit is contained in:
Alex Crichton 2014-11-12 16:05:33 -08:00
parent e6ec71a852
commit 10443a8747
3 changed files with 6 additions and 4 deletions

View file

@ -17,15 +17,15 @@ if [ "${TRAVIS}" = "true" ] && [ "${target}" = "unknown-linux-gnu" ]; then
sudo apt-get install g++-multilib lib32stdc++6
fi
host=static-rust-lang-org.s3.amazonaws.com
url=https://static-rust-lang-org.s3.amazonaws.com/dist/`cat src/rustversion.txt`
# Install both 64 and 32 bit libraries. Apparently travis barfs if you try to
# just install the right ones? This should enable cross compilation in the
# future anyway.
if [ -z "${windows}" ]; then
rm -rf rustc *.tar.gz
curl -O https://$host/dist/rust-nightly-i686-$target.tar.gz
curl -O https://$host/dist/rust-nightly-x86_64-$target.tar.gz
curl -O $url/rust-nightly-i686-$target.tar.gz
curl -O $url/rust-nightly-x86_64-$target.tar.gz
tar xfz rust-nightly-i686-$target.tar.gz
tar xfz rust-nightly-x86_64-$target.tar.gz
@ -54,7 +54,7 @@ else
else
triple=i686-pc-windows-gnu
fi
curl -O http://$host/dist/rust-nightly-$triple.exe
curl -O $url/rust-nightly-$triple.exe
innounp -y -x rust-nightly-$triple.exe
mv '{app}' rustc
# Don't use the bundled gcc, see rust-lang/rust#17442

1
src/rustversion.txt Normal file
View file

@ -0,0 +1 @@
2014-11-11

View file

@ -781,6 +781,7 @@ test!(output_separate_lines {
", compiling = COMPILING, running = RUNNING).as_slice()));
})
#[cfg(not(windows))] // FIXME(#867)
test!(code_generation {
let p = project("foo")
.file("Cargo.toml", r#"