Skip to content

Commit 57d06f7

Browse files
committed
Auto merge of #2654 - mkroening:macos-cache, r=RalfJung
README: Add macos cache deletion command
2 parents 724c1a0 + 943f88b commit 57d06f7

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/tools/miri/CONTRIBUTING.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,8 @@ is set the `MIRI_LIB_SRC` environment variable to the `library` folder of a
150150
`rust-lang/rust` repository checkout. Note that changing files in that directory
151151
does not automatically trigger a re-build of the standard library; you have to
152152
clear the Miri build cache manually (on Linux, `rm -rf ~/.cache/miri`;
153-
and on Windows, `rmdir /S "%LOCALAPPDATA%\rust-lang\miri\cache"`).
153+
on Windows, `rmdir /S "%LOCALAPPDATA%\rust-lang\miri\cache"`;
154+
and on macOS, `rm -rf ~/Library/Caches/org.rust-lang.miri`).
154155

155156
### Benchmarking
156157

src/tools/miri/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,9 @@ Moreover, Miri recognizes some environment variables:
432432
must point to the `library` subdirectory of a `rust-lang/rust` repository
433433
checkout. Note that changing files in that directory does not automatically
434434
trigger a re-build of the standard library; you have to clear the Miri build
435-
cache manually (on Linux, `rm -rf ~/.cache/miri`).
435+
cache manually (on Linux, `rm -rf ~/.cache/miri`;
436+
on Windows, `rmdir /S "%LOCALAPPDATA%\rust-lang\miri\cache"`;
437+
and on macOS, `rm -rf ~/Library/Caches/org.rust-lang.miri`).
436438
* `MIRI_SYSROOT` (recognized by `cargo miri` and the Miri driver) indicates the sysroot to use. When
437439
using `cargo miri`, only set this if you do not want to use the automatically created sysroot. For
438440
directly invoking the Miri driver, this variable (or a `--sysroot` flag) is mandatory.

0 commit comments

Comments
 (0)