authorgravatar for twit.prj@gmail.comndbn <twit.prj@gmail.com> 2024-01-22 23:32:23+03:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2024-01-22 15:32:23-05:00
log9e684e8d1af39904055abe64a9afda69a3d44a59
treefd1227a1d400f735e7e01a53f862ab6aa7398489
parent3331c5e7af28bd2ee56a1080a1829e3fb6747f60
signaturebadge-check Signed by PGP key B5690EEEBB952194

Fix wrong if condition for windows (#18637)

Fixes #18594

1 files changed, 1 insertions(+), 1 deletions(-)

src/Compilation.zig+1-1
...@@ -2365,7 +2365,7 @@ fn renameTmpIntoCache(...@@ -2365,7 +2365,7 @@ fn renameTmpIntoCache(
2365 // See https://github.com/ziglang/zig/issues/83622365 // See https://github.com/ziglang/zig/issues/8362
2366 error.AccessDenied => switch (builtin.os.tag) {2366 error.AccessDenied => switch (builtin.os.tag) {
2367 .windows => {2367 .windows => {
2368 if (!seen_eaccess) return error.AccessDenied;2368 if (seen_eaccess) return error.AccessDenied;
2369 seen_eaccess = true;2369 seen_eaccess = true;
2370 try cache_directory.handle.deleteTree(o_sub_path);2370 try cache_directory.handle.deleteTree(o_sub_path);
2371 continue;2371 continue;