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);
|
cmd.set_quiet(!verbose);
|
||||||
// Add Miri flags
|
// 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.
|
// And run the thing.
|
||||||
Ok(cmd.run()?)
|
Ok(cmd.run()?)
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user