update reference to zig-cache

This commit is contained in:
Luke Boswell 2024-07-28 17:10:40 +10:00
parent c47915a691
commit 5f95b59c42
No known key found for this signature in database
GPG key ID: F6DB3C9DB47377B0
4 changed files with 10 additions and 7 deletions

View file

@ -71,7 +71,7 @@ fn generate_bc_file(bitcode_path: &Path, zig_object: &str, file_name: &str) {
// workaround for github.com/ziglang/zig/issues/9711
#[cfg(target_os = "macos")]
let _ = fs::remove_dir_all("./zig-cache");
let _ = fs::remove_dir_all("./.zig-cache");
let mut zig_cmd = zig();
@ -137,7 +137,7 @@ fn get_zig_files(dir: &Path, cb: &dyn Fn(&Path)) -> io::Result<()> {
let entry = entry?;
let path_buf = entry.path();
if path_buf.is_dir() {
if !path_buf.ends_with("zig-cache") {
if !path_buf.ends_with(".zig-cache") {
get_zig_files(&path_buf, cb).unwrap();
}
} else {