Skip to content

Commit

Permalink
Fix wrong if condition for windows (ziglang#18637)
Browse files Browse the repository at this point in the history
  • Loading branch information
ndbn authored Jan 22, 2024
1 parent 3331c5e commit 9e684e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Compilation.zig
Original file line number Diff line number Diff line change
Expand Up @@ -2365,7 +2365,7 @@ fn renameTmpIntoCache(
// See https://github.com/ziglang/zig/issues/8362
error.AccessDenied => switch (builtin.os.tag) {
.windows => {
if (!seen_eaccess) return error.AccessDenied;
if (seen_eaccess) return error.AccessDenied;
seen_eaccess = true;
try cache_directory.handle.deleteTree(o_sub_path);
continue;
Expand Down

0 comments on commit 9e684e8

Please sign in to comment.