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