Skip creating sysroot target dir if it will be empty
This commit is contained in:
parent
280dffd82c
commit
13197322ec
@ -103,6 +103,10 @@ struct SysrootTarget {
|
|||||||
|
|
||||||
impl SysrootTarget {
|
impl SysrootTarget {
|
||||||
fn install_into_sysroot(&self, sysroot: &Path) {
|
fn install_into_sysroot(&self, sysroot: &Path) {
|
||||||
|
if self.libs.is_empty() {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
let target_rustlib_lib = sysroot.join("lib").join("rustlib").join(&self.triple).join("lib");
|
let target_rustlib_lib = sysroot.join("lib").join("rustlib").join(&self.triple).join("lib");
|
||||||
fs::create_dir_all(&target_rustlib_lib).unwrap();
|
fs::create_dir_all(&target_rustlib_lib).unwrap();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user