File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/bootstrap/src/core/build_steps Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2556,9 +2556,9 @@ fn prepare_cargo_test(
2556
2556
// We skip everything on Miri as then this overwrites the libdir set up
2557
2557
// by `Cargo::new` and that actually makes things go wrong.
2558
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 ( ) ) ;
2559
+ let mut dylib_paths = builder . rustc_lib_paths ( compiler ) ;
2560
+ dylib_paths . push ( PathBuf :: from ( & builder. sysroot_target_libdir ( compiler, target) ) ) ;
2561
+ helpers :: add_dylib_path ( dylib_paths , & mut cargo ) ;
2562
2562
}
2563
2563
2564
2564
if builder. remote_tested ( target) {
You can’t perform that action at this time.
0 commit comments