Skip to content

Commit

Permalink
Auto merge of rust-lang#3633 - RalfJung:target, r=RalfJung
Browse files Browse the repository at this point in the history
fix './miri run --dep --target _'
  • Loading branch information
bors committed May 26, 2024
2 parents 331bb3f + cbec128 commit e09bf56
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/tools/miri/miri-script/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()?)
};
Expand Down

0 comments on commit e09bf56

Please sign in to comment.