mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
Auto merge of #3633 - RalfJung:target, r=RalfJung
fix './miri run --dep --target _'
This commit is contained in:
commit
e09bf5694b
@ -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
Block a user