fix install error, when harfbuzz folder is not created

This commit is contained in:
Michael Huttner 2024-02-22 12:47:12 +01:00
parent cf443a7ffa
commit d5a605d797
1 changed files with 2 additions and 2 deletions

View File

@ -133,8 +133,8 @@ mod inner {
println!();
let dest_dir = include_dir.join("harfbuzz");
// CC build process already creates this for us:
//fs::create_dir(&dest_dir).expect("error creating dest_dir");
// Create the dest_dir if it does not exist
fs::create_dir_all(&dest_dir).expect("error creating dest_dir");
for entry in fs::read_dir(&src_dir).expect("failed to read dir") {
let entry = entry.expect("failed to get dir entry");