Skip to content

Commit 877d577

Browse files
committed
try adding more things to the PATH on Windows, maybe it helps
1 parent e00e916 commit 877d577

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/bootstrap/src/core/builder.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -1272,8 +1272,10 @@ impl<'a> Builder<'a> {
12721272
cmd.env("MIRI", &miri);
12731273
cmd.env("CARGO", &self.initial_cargo);
12741274
// Need to add the run_compiler libs. Not entirely sure why that has to be one stage up from
1275-
// what Miri was built for.
1276-
self.add_rustc_lib_path(run_compiler, &mut cmd);
1275+
// what Miri was built for. Also, we can't use `add_rustc_lib_path` as that's a NOP on
1276+
// Windows but without our help Windows can't find the libs here, so we inline what it does
1277+
// instead.
1278+
add_dylib_path(self.rustc_lib_paths(run_compiler), &mut cmd);
12771279
cmd
12781280
}
12791281

0 commit comments

Comments
 (0)