Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite09bf56

Browse files
committed
Auto merge of#3633 - RalfJung:target, r=RalfJung
fix './miri run --dep --target _'
2 parents331bb3f +cbec128 commite09bf56

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

‎src/tools/miri/miri-script/src/commands.rs‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,13 @@ impl Command {
531531
};
532532
cmd.set_quiet(!verbose);
533533
// Add Miri flags
534-
let cmd = cmd.args(&miri_flags).args(&seed_flag).args(&early_flags).args(&flags);
534+
letmut cmd = cmd.args(&miri_flags).args(&seed_flag).args(&early_flags).args(&flags);
535+
// For `--dep` we also need to set the env var.
536+
if dep{
537+
ifletSome(target) =&target{
538+
cmd = cmd.env("MIRI_TEST_TARGET", target);
539+
}
540+
}
535541
// And run the thing.
536542
Ok(cmd.run()?)
537543
};

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp