File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,10 @@ begingroup "Building Miri"
17
17
echo " Installing release version of Miri"
18
18
export RUSTFLAGS=" -D warnings"
19
19
export CARGO_INCREMENTAL=0
20
+ ls -li ~ /.cargo/bin/
20
21
./miri install # implicitly locked
22
+ ls -li ~ /.cargo/bin/
23
+ exit 1
21
24
22
25
# Prepare debug build for direct `./miri` invocations
23
26
echo " Building debug version of Miri"
@@ -59,12 +62,11 @@ function run_tests {
59
62
PYTHON=python
60
63
fi
61
64
# Some environment setup that attempts to confuse the heck out of cargo-miri.
62
- if [ " $HOST_TARGET " = x86_64-unknown-linux-gnu ]; then
65
+ # if [ "$HOST_TARGET" = x86_64-unknown-linux-gnu ]; then
63
66
# These act up on Windows (`which miri` produces a filename that does not exist?!?),
64
67
# 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)
67
- fi
68
+ # export RUSTC=$(which rustc) # Produces a warning unless we also set MIRI
69
+ # fi
68
70
mkdir -p .cargo
69
71
echo ' build.rustc-wrapper = "thisdoesnotexist"' > .cargo/config.toml
70
72
# Run the actual test
Original file line number Diff line number Diff line change @@ -281,8 +281,10 @@ 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
+ echo Binaries should be installed to $SYSROOT
286
+ $CARGO install $CARGO_EXTRA_FLAGS --path " $MIRIDIR " --force --locked --root " $SYSROOT " " $@ "
287
+ $CARGO install $CARGO_EXTRA_FLAGS --path " $MIRIDIR " /cargo-miri --force --locked --root " $SYSROOT " " $@ "
286
288
;;
287
289
check)
288
290
# Check, and let caller control flags.
You can’t perform that action at this time.
0 commit comments