Auto merge of #1021 - RalfJung:rustc-dev, r=RalfJung

Adjust for rustc-dev
This commit is contained in:
bors 2019-10-24 15:16:44 +00:00
commit ffb147657d
4 changed files with 12 additions and 8 deletions

View file

@ -31,8 +31,10 @@ install:
- rustup component remove rust-docs & exit 0
- rustup update
# Install "master" toolchain
- cargo install rustup-toolchain-install-master & exit 0
- rustup-toolchain-install-master -f -n master %RUSTC_HASH% -c cargo -c rust-src
- cargo install rustup-toolchain-install-master -f
# We need to install cargo here as well or else the DLL search path inside `cargo run`
# will be for the wrong toolchain. (On Unix, `./miri` takes care of this, but not here.)
- rustup-toolchain-install-master -f -n master %RUSTC_HASH% -c rust-src -c rustc-dev -c cargo
- rustup default master
- rustc --version
- cargo --version

View file

@ -38,8 +38,8 @@ before_script:
- rustup component remove rust-docs || echo "rust-docs already gone"
- rustup update
# Install "master" toolchain
- cargo install rustup-toolchain-install-master || echo "rustup-toolchain-install-master already installed"
- travis_retry rustup-toolchain-install-master -f -n master $RUSTC_HASH -c rust-src
- cargo install rustup-toolchain-install-master -f
- travis_retry rustup-toolchain-install-master -f -n master $RUSTC_HASH -c rust-src -c rustc-dev
- rustup default master
- rustc --version
- cargo --version

View file

@ -31,8 +31,10 @@ Miri heavily relies on internal rustc interfaces to execute MIR. Still, some
things (like adding support for a new intrinsic or a shim for an external
function being called) can be done by working just on the Miri side.
To prepare, make sure you are using a nightly Rust compiler. Then you should be
able to just `cargo build` Miri.
To prepare, make sure you are using a nightly Rust compiler. You also need to
have the `rust-src` and `rustc-dev` components installed, which you can add via
`rustup component add rust-src rustc-dev`. Then you should be able to just
`cargo build` Miri.
In case this fails, your nightly might be incompatible with Miri master. The
`rust-version` file contains the commit hash of rustc that Miri is currently
@ -41,7 +43,7 @@ to wait for the next nightly to get released. You can also use
[`rustup-toolchain-install-master`](https://github.com/kennytm/rustup-toolchain-install-master)
to install that exact version of rustc as a toolchain:
```
rustup-toolchain-install-master $(cat rust-version) -c rust-src
rustup-toolchain-install-master $(cat rust-version) -c rust-src -c rustc-dev
```
Another common problem is outdated dependencies: Miri does not come with a

View file

@ -1 +1 @@
55e00631e5bc5b16d40232914e57deeea197a8e4
8e0007f829661e57d008d2e908c95f6e84b04b25