We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db067f4 commit ae859c3Copy full SHA for ae859c3
cargo-miri/bin.rs
@@ -397,6 +397,11 @@ fn phase_cargo_miri(mut args: env::Args) {
397
setup(subcommand);
398
399
// Invoke actual cargo for the job, but with different flags.
400
+ // We re-use `cargo test` and `cargo run`, which makes target and binary handling very easy but
401
+ // requires some extra work to make the build check-only (see all the `--emit` hacks below).
402
+ // <https://github.com/rust-lang/miri/pull/1540#issuecomment-693553191> describes an alternative
403
+ // approach that uses `cargo check`, making that part easier but target and binary handling
404
+ // harder.
405
let miri_path = std::env::current_exe().expect("current executable path invalid");
406
let cargo_cmd = match subcommand {
407
MiriCommand::Test => "test",
0 commit comments