@@ -13,26 +13,32 @@ I currently recommend that you install [multirust][multirust] and then use it to
13
13
install the current rustc nightly version that works with Miri:
14
14
15
15
``` sh
16
- multirust update nightly-2016-04-05
16
+ multirust update nightly-2016-04-11
17
17
```
18
18
19
19
## Build
20
20
21
21
``` sh
22
- multirust run nightly-2016-04-05 cargo build
22
+ multirust run nightly-2016-04-11 cargo build
23
23
```
24
24
25
25
## Run a test
26
26
27
27
``` sh
28
- multirust run nightly-2016-04-05 cargo run -- \
29
- --sysroot $HOME /.multirust/toolchains/nightly-2016-04-05 \
28
+ multirust run nightly-2016-04-11 cargo run -- \
29
+ --sysroot $HOME /.multirust/toolchains/nightly-2016-04-11 \
30
30
test/filename.rs
31
31
```
32
32
33
- If you installed without using multirust, you'll need to adjust the command to
34
- run your cargo and set the ` sysroot ` to the directory where your rust compiler
35
- is installed (` $sysroot/bin/rustc ` should be a valid path).
33
+ If you are using [ rustup] [ rustup ] (the name of the multirust rewrite in Rust),
34
+ the ` sysroot ` path will also include your build target (e.g.
35
+ ` $HOME/.multirust/toolchains/nightly-2016-04-11-x86_64-apple-darwin ` ). You can
36
+ see the current toolchain's directory by running ` rustup which cargo ` (ignoring
37
+ the trailing `/bin/cargo).
38
+
39
+ If you installed without using multirust or rustup, you'll need to adjust the
40
+ command to run your cargo and set the ` sysroot ` to the directory where your
41
+ Rust compiler is installed (` $sysroot/bin/rustc ` should be a valid path).
36
42
37
43
## License
38
44
@@ -52,3 +58,4 @@ additional terms or conditions.
52
58
[ mir ] : https://github.com/rust-lang/rfcs/blob/master/text/1211-mir.md
53
59
[ usask ] : https://www.usask.ca/
54
60
[ multirust ] : https://github.com/brson/multirust
61
+ [ rustup ] : https://www.rustup.rs
0 commit comments