File tree 2 files changed +5
-4
lines changed
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -62,8 +62,8 @@ function run_tests {
62
62
if [ " $HOST_TARGET " = x86_64-unknown-linux-gnu ]; then
63
63
# These act up on Windows (`which miri` produces a filename that does not exist?!?),
64
64
# so let's do this only on Linux. Also makes sure things work without these set.
65
- export RUSTC=$( which rustc)
66
- export MIRI=$( which miri)
65
+ export RUSTC=$( which rustc) # Produces a warning unless we also set MIRI
66
+ export MIRI=$( rustc + miri --print sysroot ) /bin/miri
67
67
fi
68
68
mkdir -p .cargo
69
69
echo ' build.rustc-wrapper = "thisdoesnotexist"' > .cargo/config.toml
Original file line number Diff line number Diff line change @@ -281,8 +281,9 @@ find_sysroot() {
281
281
case " $COMMAND " in
282
282
install)
283
283
# "--locked" to respect the Cargo.lock file if it exists.
284
- $CARGO install $CARGO_EXTRA_FLAGS --path " $MIRIDIR " --force --locked " $@ "
285
- $CARGO install $CARGO_EXTRA_FLAGS --path " $MIRIDIR " /cargo-miri --force --locked " $@ "
284
+ # Install binaries to the miri toolchain's sysroot so they do not interact with other toolchains
285
+ $CARGO install $CARGO_EXTRA_FLAGS --path " $MIRIDIR " --force --locked --root " $SYSROOT " " $@ "
286
+ $CARGO install $CARGO_EXTRA_FLAGS --path " $MIRIDIR " /cargo-miri --force --locked --root " $SYSROOT " " $@ "
286
287
;;
287
288
check)
288
289
# Check, and let caller control flags.
You can’t perform that action at this time.
0 commit comments