Repository navigation
🐛 Use Apple's ld instead of ld64.lld for macOS targets - #52
Merged
Merged
Conversation
kammce
force-pushed
the
macos-use-apple-ld
branch
from
October 11, 2026 02:02
17ef758 to
ee7d8b6
Compare
ld64.lld lags behind the macOS SDK's .tbd format. The macOS 27 SDK lists an arm64e.x1 architecture that lld from LLVM 20/22 rejects, so nothing links. Apple's ld always matches its SDK, and clang passes it this package's libLTO.dylib, so LTO still works. CI: add a macOS 27 job (xcode-27 runner) and drop the macOS 14 jobs. Xcode 15's ld crashes when paired with this toolchain, and GitHub retires the macos-14 runner on 2026-11-02.
kammce
force-pushed
the
macos-use-apple-ld
branch
from
October 11, 2026 02:08
ee7d8b6 to
014201b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ld64.lld lags behind the macOS SDK's .tbd format. The macOS 27 SDK lists
an arm64e.x1 architecture that lld from LLVM 20/22 rejects, so nothing
links. Apple's ld always matches its SDK, and clang passes it this
package's libLTO.dylib, so LTO still works.
CI: add a macOS 27 job (xcode-27 runner) and drop the macOS 14 jobs.
Xcode 15's ld crashes when paired with this toolchain, and GitHub
retires the macos-14 runner on 2026-11-02.