File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -37,9 +37,13 @@ script:
37
37
cargo test --release --all-features &&
38
38
cargo install --all-features --force --path .
39
39
- |
40
- # Get ourselves a MIR-full libstd
40
+ # Get ourselves a MIR-full libstd, and use it henceforth
41
41
cargo miri setup &&
42
- export MIRI_SYSROOT=~/.miri/HOST
42
+ if [ "$TRAVIS_OS_NAME" == osx ]; then
43
+ export MIRI_SYSROOT=~/Library/Caches/miri.miri.miri/HOST
44
+ else
45
+ export MIRI_SYSROOT=~/.cache/miri/HOST
46
+ fi
43
47
- |
44
48
# Test miri with full MIR
45
49
cargo test --release --all-features
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ Miri builds and vice-versa.
91
91
92
92
You may be running ` cargo miri ` with a different compiler version than the one
93
93
used to build the custom libstd that Miri uses, and Miri failed to detect that.
94
- Try deleting ` ~/.miri ` .
94
+ Try deleting ` ~/.cache/ miri ` .
95
95
96
96
## Miri ` -Z ` flags
97
97
Original file line number Diff line number Diff line change @@ -30,9 +30,9 @@ test_script:
30
30
# Test plain miri
31
31
- cargo build --release --all-features --all-targets
32
32
- cargo test --release --all-features
33
- # Get ourselves a MIR-full libstd
33
+ # Get ourselves a MIR-full libstd, and use it henceforth
34
34
- cargo run --release --all-features --bin cargo-miri -- miri setup
35
- - set MIRI_SYSROOT=%USERPROFILE%\. miri\HOST
35
+ - set MIRI_SYSROOT=%USERPROFILE%\AppData\Local\ miri\miri\cache \HOST
36
36
# Test miri with full MIR
37
37
- cargo test --release --all-features
38
38
You can’t perform that action at this time.
0 commit comments