Skip to content

Commit

Permalink
Stop copying libstd.so to dist/lib
Browse files Browse the repository at this point in the history
It is only necessary in dist/lib/rustlib/*/lib anymore. The jit mode now
correctly find it there too.
  • Loading branch information
bjorn3 committed Oct 17, 2024
1 parent 16067fd commit bbaaecc
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions build_system/build_sysroot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,6 @@ pub(crate) fn build_sysroot(
.install_into_sysroot(&dist_dir);
}

// Copy std for the host to the lib dir. This is necessary for the jit mode to find
// libstd.
for lib in host.libs {
let filename = lib.file_name().unwrap().to_str().unwrap();
if filename.contains("std-") && !filename.contains(".rlib") {
try_hard_link(&lib, dist_dir.join("lib").join(lib.file_name().unwrap()));
}
}

let mut target_compiler = {
let rustc_clif = dist_dir.join(wrapper_base_name.replace("____", "rustc-clif"));
let rustdoc_clif = dist_dir.join(wrapper_base_name.replace("____", "rustdoc-clif"));
Expand Down

0 comments on commit bbaaecc

Please sign in to comment.