Skip to content

Commit b25d7b0

Browse files
y86-devRalfJung
andcommitted
Clarified issues when building miri with a custom rustc
Co-authored-by: Ralf Jung <[email protected]>
1 parent 6005f5d commit b25d7b0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

CONTRIBUTING.md

+7
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,13 @@ rustup toolchain link stage2 build/x86_64-unknown-linux-gnu/stage2
206206
rustup override set stage2
207207
```
208208

209+
Important: You need to delete the miri cache (located at `~/.cache/miri` on Linux; the exact location is printed after the library build: "A libstd for Miri is now available in ...") when
210+
you change the stdlib, otherwise the old, chached version will be used.
211+
212+
Note: `./x.py --stage 2 compiler/rustc` currently errors with `thread 'main'
213+
panicked at 'fs::read(stamp) failed with No such file or directory (os error 2)`,
214+
you can simply ignore that error; Miri will build anyway.
215+
209216
For more information about building and configuring a local compiler,
210217
see <https://rustc-dev-guide.rust-lang.org/building/how-to-build-and-run.html>.
211218

0 commit comments

Comments
 (0)