Skip to content

Commit f5aa313

Browse files
committed
make './miri toolchain' work even if we cannot write to rustup dir
1 parent 0c27c2e commit f5aa313

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/tools/miri/miri

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,9 @@ toolchain)
9797
CUR_COMMIT=$(rustc +miri --version -v 2>/dev/null | grep "^commit-hash: " | cut -d " " -f 2)
9898
if [[ "$CUR_COMMIT" == "$NEW_COMMIT" ]]; then
9999
echo "miri toolchain is already at commit $CUR_COMMIT."
100-
rustup override set miri
100+
if [[ "$TOOLCHAIN" != "miri" ]]; then
101+
rustup override set miri
102+
fi
101103
exit 0
102104
fi
103105
# Install and setup new toolchain.

0 commit comments

Comments
 (0)