Skip to content

Commit b381547

Browse files
WaffleLapkinNoratrieb
authored andcommitted
Setup miri before running examples
1 parent 082e401 commit b381547

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

builder/src/main.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@ fn main() -> eyre::Result<()> {
1111

1212
install_toolchain(&examples_dir).wrap_err("install toolchain")?;
1313

14+
// Setup miri to avoid race condition in `cargo miri run` below...
15+
eprintln!("Setting up miri");
16+
std::process::Command::new("cargo")
17+
.arg("miri")
18+
.arg("setup")
19+
.output()
20+
.wrap_err("setting up miri")?;
21+
1422
thread::scope(|scope| {
1523
let mut handles = Vec::new();
1624

0 commit comments

Comments
 (0)