# macho: do not open file handle when building static archive · gitcafe/zig

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

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

Visibility: public

Requested revision: b12992cb0172bc2de1f1aae3da57b952dbaf70cd

Requested commit: b12992cb0172bc2de1f1aae3da57b952dbaf70cd

Commit: b12992cb0172bc2de1f1aae3da57b952dbaf70cd

Tree: 934f13f933e4bbf4c20d5b86624f4775da6419f8

Author: Jakub Konka

Committer: Andrew Kelley

## Message

```
macho: do not open file handle when building static archive

Firstly, opening a file handle is not really needed since we won't even
use it, and secondly, this can cause AccessDenied errors on Windows
when trying to move a directory from zig-cache/tmp/ to zig-cache/o/
since, without POSIX semantics, it is illegal to move directories
with open handles to any of its resources.

```

## Parents

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

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