Skip to content

Commit 564baf0

Browse files
committed
miri: add -Zbinary-dep-depinfo to dependency builds
1 parent f520900 commit 564baf0

File tree

1 file changed

+5
-1
lines changed
  • src/tools/miri/tests

1 file changed

+5
-1
lines changed

src/tools/miri/tests/ui.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,11 @@ fn miri_config(
133133
program: miri_path()
134134
.with_file_name(format!("cargo-miri{}", env::consts::EXE_SUFFIX)),
135135
// There is no `cargo miri build` so we just use `cargo miri run`.
136-
args: ["miri", "run"].into_iter().map(Into::into).collect(),
136+
// Add `-Zbinary-dep-depinfo` since it is needed for bootstrap builds (and doesn't harm otherwise).
137+
args: ["miri", "run", "-Zbinary-dep-depinfo"]
138+
.into_iter()
139+
.map(Into::into)
140+
.collect(),
137141
// Reset `RUSTFLAGS` to work around <https://github.com/rust-lang/rust/pull/119574#issuecomment-1876878344>.
138142
envs: vec![("RUSTFLAGS".into(), None)],
139143
..CommandBuilder::cargo()

0 commit comments

Comments
 (0)