mirror of
https://github.com/rust-lang/cargo
synced 2024-10-13 19:22:33 +00:00
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:
parent
e6ec71a852
commit
10443a8747
|
@ -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
1
src/rustversion.txt
Normal file
|
@ -0,0 +1 @@
|
|||
2014-11-11
|
|
@ -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#"
|
||||
|
|
Loading…
Reference in a new issue