# fix build on macOS · gitcafe/zig

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

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

Visibility: public

Requested revision: a7346ea49f4d9b1af2d0babf67354b234a87fe42

Requested commit: a7346ea49f4d9b1af2d0babf67354b234a87fe42

Commit: a7346ea49f4d9b1af2d0babf67354b234a87fe42

Tree: 18fe76c5f8958d1cf2533fb5136311d855346f4a

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
fix build on macOS

Sadly due to a workaround for LLD linker limitations on macOS
we cannot put libuserland into an .a file; instead we have to use object
files. Again due to linker limitations, bundling compiler_rt.o into
another relocatable object also doesn't work. So we're left with
disabling stack probing on macOS for the stage1 self-hosted code.

These workarounds could all be removed if the macos support in the LLD
linker improved, or if Zig project had its own linker that did not have
these issues.

```

## Parents

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

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