# zld: ignore \-search_paths_first · gitcafe/zig

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

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

Visibility: public

Requested revision: d589047e80133c5f673a7d40dd1cfa50258dcc4f

Requested commit: d589047e80133c5f673a7d40dd1cfa50258dcc4f

Commit: d589047e80133c5f673a7d40dd1cfa50258dcc4f

Tree: a4de3fb4e334261d8938cfe2f8a8a3d92ae3ab63

Author: Motiejus Jakštys

Committer: Jakub Konka

## Message

```
zld: ignore -search_paths_first

Ignore MachO-specific flag -search_paths_first, since it is the default
in zld and ld64.

Also see Jakub's comment[1]:

    Changing topic slightly, @motiejus dunno if you noticed, with this
    change building arm64 Zig binary fails on macos - it complains about
    unknown -search_paths_first flag. This one is an easy fix: we should
    ignore it since this is the default behaviour in both ld64 and zld.

[1]: https://github.com/ziglang/zig/pull/11906#issuecomment-1163545849

```

## Parents

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

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