We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents de8f05c + 699b7d4 commit 51363f5Copy full SHA for 51363f5
src/tools/miri/miri
@@ -3,5 +3,6 @@ set -e
3
# Instead of doing just `cargo run --manifest-path .. $@`, we invoke miri-script binary directly. Invoking `cargo run` goes through
4
# rustup (that sets it's own environmental variables), which is undesirable.
5
MIRI_SCRIPT_TARGET_DIR="$(dirname "$0")"/miri-script/target
6
-cargo +stable build $CARGO_EXTRA_FLAGS -q --target-dir "$MIRI_SCRIPT_TARGET_DIR" --manifest-path "$(dirname "$0")"/miri-script/Cargo.toml
+cargo +stable build $CARGO_EXTRA_FLAGS -q --target-dir "$MIRI_SCRIPT_TARGET_DIR" --manifest-path "$(dirname "$0")"/miri-script/Cargo.toml || \
7
+ ( echo "Failed to build miri-script. Is the 'stable' toolchain installed?"; exit 1 )
8
"$MIRI_SCRIPT_TARGET_DIR"/debug/miri-script "$@"
0 commit comments