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 @@ -2570,9 +2570,9 @@ fn prepare_cargo_test(
25702570 // We skip everything on Miri as then this overwrites the libdir set up
25712571 // by `Cargo::new` and that actually makes things go wrong.
25722572 if builder. kind != Kind :: Miri {
2573- let mut dylib_path = dylib_path ( ) ;
2574- dylib_path . insert ( 0 , PathBuf :: from ( & * builder. sysroot_target_libdir ( compiler, target) ) ) ;
2575- cargo . env ( dylib_path_var ( ) , env :: join_paths ( & dylib_path ) . unwrap ( ) ) ;
2573+ let mut dylib_paths = builder . rustc_lib_paths ( compiler ) ;
2574+ dylib_paths . push ( PathBuf :: from ( & builder. sysroot_target_libdir ( compiler, target) ) ) ;
2575+ helpers :: add_dylib_path ( dylib_paths , & mut cargo ) ;
25762576 }
25772577
25782578 if builder. remote_tested ( target) {
You can’t perform that action at this time.
0 commit comments