Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 1319732

Browse files
committed
Skip creating sysroot target dir if it will be empty
1 parent 280dffd commit 1319732

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

build_system/build_sysroot.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,10 @@ struct SysrootTarget {
103103

104104
impl SysrootTarget {
105105
fn install_into_sysroot(&self, sysroot: &Path) {
106+
if self.libs.is_empty() {
107+
return;
108+
}
109+
106110
let target_rustlib_lib = sysroot.join("lib").join("rustlib").join(&self.triple).join("lib");
107111
fs::create_dir_all(&target_rustlib_lib).unwrap();
108112

0 commit comments

Comments
 (0)