Skip to content

Commit

Permalink
miri-script refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Jul 30, 2023
1 parent 700a8b7 commit d9e8f3c
Show file tree
Hide file tree
Showing 6 changed files with 494 additions and 597 deletions.
4 changes: 2 additions & 2 deletions miri
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
set -e
# Instead of doing just `cargo run --manifest-path .. $@`, we invoke miri-script binary directly. Invoking `cargo run` goes through
# rustup (that sets it's own environmental variables), which is undesirable.
cargo build --manifest-path "$(dirname "$0")"/miri-script/Cargo.toml
"$(dirname "$0")"/miri-script/target/debug/miri-script $@
cargo build -q --manifest-path "$(dirname "$0")"/miri-script/Cargo.toml
"$(dirname "$0")"/miri-script/target/debug/miri-script "$@"
4 changes: 4 additions & 0 deletions miri-script/miri
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
# RA invokes `./miri cargo ...` for each workspace, so we need to forward that to the main `miri`
# script. See <https://github.com/rust-analyzer/rust-analyzer/issues/10793>.
exec "$(dirname "$0")"/../miri "$@"
104 changes: 0 additions & 104 deletions miri-script/src/arg.rs

This file was deleted.

Loading

0 comments on commit d9e8f3c

Please sign in to comment.