Skip to content

Commit bbaaecc

Browse files
committed
Stop copying libstd.so to dist/lib
It is only necessary in dist/lib/rustlib/*/lib anymore. The jit mode now correctly find it there too.
1 parent 16067fd commit bbaaecc

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

build_system/build_sysroot.rs

-9
Original file line numberDiff line numberDiff line change
@@ -102,15 +102,6 @@ pub(crate) fn build_sysroot(
102102
.install_into_sysroot(&dist_dir);
103103
}
104104

105-
// Copy std for the host to the lib dir. This is necessary for the jit mode to find
106-
// libstd.
107-
for lib in host.libs {
108-
let filename = lib.file_name().unwrap().to_str().unwrap();
109-
if filename.contains("std-") && !filename.contains(".rlib") {
110-
try_hard_link(&lib, dist_dir.join("lib").join(lib.file_name().unwrap()));
111-
}
112-
}
113-
114105
let mut target_compiler = {
115106
let rustc_clif = dist_dir.join(wrapper_base_name.replace("____", "rustc-clif"));
116107
let rustdoc_clif = dist_dir.join(wrapper_base_name.replace("____", "rustdoc-clif"));

0 commit comments

Comments
 (0)