mirror of https://github.com/rust-lang/rust.git
fix './miri run --dep --target _'
This commit is contained in:
parent
331bb3f10d
commit
cbec1288a2
|
@ -531,7 +531,13 @@ impl Command {
|
|||
};
|
||||
cmd.set_quiet(!verbose);
|
||||
// Add Miri flags
|
||||
let cmd = cmd.args(&miri_flags).args(&seed_flag).args(&early_flags).args(&flags);
|
||||
let mut cmd = cmd.args(&miri_flags).args(&seed_flag).args(&early_flags).args(&flags);
|
||||
// For `--dep` we also need to set the env var.
|
||||
if dep {
|
||||
if let Some(target) = &target {
|
||||
cmd = cmd.env("MIRI_TEST_TARGET", target);
|
||||
}
|
||||
}
|
||||
// And run the thing.
|
||||
Ok(cmd.run()?)
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue