Closed
Description
This is a sub-task of #8726.
LLD on Mach-O is fatally flawed for a few reasons. One example is #3295.
However Zig still falls back to LLD for Mach-O in a handful of cases. Here is the current logic:
Lines 714 to 751 in 2d11967
Lines 637 to 656 in 2d11967
This issue is to improve self-hosted linking on Mach-O enough that for Mach-O targets, we always use self-hosted linking, and we can remove this line from cmake:
Line 45 in 2d11967