# macOS: macho ld64.lld fixes · gitcafe/zig

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

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

Visibility: public

Requested revision: 3b26e508638e96997aff3d5ef2c42a917bf86cc8

Requested commit: 3b26e508638e96997aff3d5ef2c42a917bf86cc8

Commit: 3b26e508638e96997aff3d5ef2c42a917bf86cc8

Tree: 969d4867b78ae9fcc79db31a9c34bb27ab82c439

Author: Michael Dusan

Committer: Andrew Kelley

## Message

```
macOS: macho ld64.lld fixes

 * bring `construct_linker_job_macho` to parity with
   `construct_linker_job_elf`
 * macho now sets `-error-limit`
 * macho on macOS now sets `-macosx_version_min` and `-sdk_version`
   to `10.13` when running `zig0`
 * macho now detects when `-l` prefix is not needed
 * macho on macOS detects system libraries in a case-insensitive manner
 * macho now ads user-specified libraries to linker command-line args
   when condition `is_native_os != true`
 * re-ordered some macho args positions to match elf positions

closes #5059
closes #5067

```

## Parents

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

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