Repository navigation
robius-speech: link clang's runtime library on Apple platforms - #29
Merged
Merged
Conversation
The Swift bridge calls into clang's runtime library, e.g. `__isPlatformVersionAtLeast` for its `#available` checks and `__chkstk_darwin` for stack probes. rustc links Apple targets with `-nodefaultlibs`, which leaves that library out, so linking an iOS app failed (as in Robrix's TestFlight build with Xcode 26.3). The build script now links `clang_rt.ios` (or `clang_rt.iossim`/`clang_rt.osx`) from clang's resource directory.
This was referenced Oct 6, 2026
kevinaboos
added a commit
to project-robius/robrix
that referenced
this pull request
Oct 6, 2026
iOS needed a fix to `robius-speech`, see this PR: <project-robius/robius#29> windows needed a robius-packaging-commands fix, see this: <project-robius/robius-packaging-commands#15> which is now published to crates.io as v0.4.1 macOS notarization failed cuz apple's notary server is super slow today so i dunno what we can do about that. One of them did succeed eventually after like 1.5 hours. yikes
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.
Linking an iOS app with robius-speech fails with undefined
___isPlatformVersionAtLeast(Swift's#availablechecks) or___chkstk_darwin, since rustc links Apple targets with-nodefaultlibsand so leaves out clang's runtime library. This broke Robrix's beta.2 TestFlight build in CI (Xcode 26.3).The build script now links
clang_rt.ios(orclang_rt.iossim/clang_rt.osx) from clang's resource directory. A minimal iOS binary using robius-speech failed to link before this and links fine with it; macOS still links fine too.