Repository navigation
psm: select Mach-O assembly for watchOS and visionOS - #162
Closed
matthargett wants to merge 1 commit into
Closed
matthargett wants to merge 1 commit into
matthargett wants to merge 1 commit into
Conversation
The Apple branch of the assembly guards listed macOS, iOS and tvOS only, so watchOS and visionOS targets got the ELF `.type`/`.size` directives and failed to assemble. Add both to the guard in the four files that carry it.
Author
|
CI failure looks unrelated: |
Member
|
Merged #152 instead. |
Author
thanks! can you cut a release with the change? lmk if you want help getting the CI passing! :D |
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.
This is #152 with the commit message shortened, as asked there. The diff and the authorship are @proggeramlug's; I only rewrote the message and rebased it on current
master. Happy to close this if #152 gets updated instead.The Apple branch of the assembly guards lists macOS, iOS and tvOS (#142), so
*-apple-watchosand*-apple-visionosfall through to the ELF branch and fail to assemble:I hit this building for an Apple Watch, where
psmarrives throughpest2.9.Checked with Rust 1.98 on macOS:
cargo build --target aarch64-apple-watchosinpsm/fails onmasterwith the error above and builds with this change.CFLAGS_aarch64_apple_watchos=-DCFG_TARGET_OS_ios, which selects the same branch. That binary runs on an Apple Watch Series 10 (watchOS 27.2).