# stage2: better handling of CacheMode.whole on Windows · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/cb635e084b0c36e3c7a6bf63f49f7e7e9918532d)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: cb635e084b0c36e3c7a6bf63f49f7e7e9918532d

Requested commit: cb635e084b0c36e3c7a6bf63f49f7e7e9918532d

Commit: cb635e084b0c36e3c7a6bf63f49f7e7e9918532d

Tree: 92d53f835566b630fd39f44a5e8c8ef9b3339add

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage2: better handling of CacheMode.whole on Windows

Windows gives AccessDenied if you delete a directory which contains open
file handles. This could be triggered when using CacheMode.whole when
cross compiling macho test binaries.

```

## Parents

- [9ee4530b9b38805f88a1e3df4b4b74db240f05df](https://git.cafe/gitcafe/zig/commit/9ee4530b9b38805f88a1e3df4b4b74db240f05df?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/cb635e084b0c36e3c7a6bf63f49f7e7e9918532d?format=markdown)
