We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e65a8f commit 88d058fCopy full SHA for 88d058f
build_system/build_sysroot.rs
@@ -137,7 +137,8 @@ pub(crate) fn build_sysroot(
137
// libstd.
138
for file in fs::read_dir(host_rustlib_lib).unwrap() {
139
let file = file.unwrap().path();
140
- if file.file_name().unwrap().to_str().unwrap().contains("std-") {
+ let filename = file.file_name().unwrap().to_str().unwrap();
141
+ if filename.contains("std-") && !filename.contains(".rlib") {
142
try_hard_link(&file, target_dir.join("lib").join(file.file_name().unwrap()));
143
}
144
0 commit comments