# support building static self hosted compiler on macos · gitcafe/zig

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

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

Visibility: public

Requested revision: 1554dd9697b77b4fe4a309247982c3e29048f124

Requested commit: 1554dd9697b77b4fe4a309247982c3e29048f124

Commit: 1554dd9697b77b4fe4a309247982c3e29048f124

Tree: f1ed649ac17a98dfb49067e04ea0c169cb34a725

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
support building static self hosted compiler on macos

 * add a --system-linker-hack command line parameter to work around
   poor LLD macho code. See #1535
 * build.zig correctly handles static as well as dynamic dependencies
   when building the self hosted compiler.
   - no more unnecessary libxml2 dependency
   - a static build on macos produces a completely static self-hosted
     compiler for macos (except for libSystem as intended).

```

## Parents

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

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