Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 681cb88

Browse files
authored
Add cache location on windows to documentation
1 parent ada7b72 commit 681cb88

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ build Miri yourself, the Miri shipped by `rustup` will work. All you have to do
134134
is set the `MIRI_LIB_SRC` environment variable to the `library` folder of a
135135
`rust-lang/rust` repository checkout. Note that changing files in that directory
136136
does not automatically trigger a re-build of the standard library; you have to
137-
clear the Miri build cache manually (on Linux, `rm -rf ~/.cache/miri`).
137+
clear the Miri build cache manually (on Linux, `rm -rf ~/.cache/miri` and on Windows, `rmdir /S "%LOCALAPPDATA%\rust-lang\miri"`).
138138

139139
## Configuring `rust-analyzer`
140140

@@ -226,7 +226,7 @@ rustup override set stage2
226226
```
227227

228228
Important: You need to delete the Miri cache when you change the stdlib; otherwise the
229-
old, chached version will be used. On Linux, the cache is located at `~/.cache/miri`; the exact
229+
old, chached version will be used. On Linux, the cache is located at `~/.cache/miri` and on Windows, the cache is located at `%LOCALAPPDATA%\rust-lang\miri`; the exact
230230
location is printed after the library build: "A libstd for Miri is now available in ...".
231231

232232
Note: `./x.py --stage 2 compiler/rustc` currently errors with `thread 'main'

0 commit comments

Comments
 (0)