We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 15f21f4 + 7b25d4a commit bfb8f73Copy full SHA for bfb8f73
src/bootstrap/src/core/build_steps/test.rs
@@ -2556,9 +2556,9 @@ fn prepare_cargo_test(
2556
// We skip everything on Miri as then this overwrites the libdir set up
2557
// by `Cargo::new` and that actually makes things go wrong.
2558
if builder.kind != Kind::Miri {
2559
- let mut dylib_path = dylib_path();
2560
- dylib_path.insert(0, PathBuf::from(&*builder.sysroot_target_libdir(compiler, target)));
2561
- cargo.env(dylib_path_var(), env::join_paths(&dylib_path).unwrap());
+ let mut dylib_paths = builder.rustc_lib_paths(compiler);
+ dylib_paths.push(PathBuf::from(&builder.sysroot_target_libdir(compiler, target)));
+ helpers::add_dylib_path(dylib_paths, &mut cargo);
2562
}
2563
2564
if builder.remote_tested(target) {
0 commit comments