Skip to content

Upstream missing macCatalyst support #75432

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jul 24, 2024

Conversation

tshortli
Copy link
Contributor

Upstream various missing bits of macCatalyst platform support, primarily related to compiling availability checks (especially in zippered libraries).

For zippered binaries, if #available checks will still ultimately be miscompiled because the necessary compiler-rt entry point is missing from llvm/clang (see the FIXME in _stdlib_isOSVersionAtLeastOrVariantVersionAtLeast()). However, this otherwise brings parity with the Apple Swift compiler for code generation when targeting macCatalyst.

Partly resolves rdar://103960437 and #62884.

tshortli added 6 commits July 23, 2024 17:00
Upstream the necessary changes to compile `if #available` queries correctly
when a `macabi` target triple or a `-target-variant` is specified.
Upstreams the necessary changes to compile references to `@backDeployed`
declarations correctly when a `macabi` target triple or a `-target-variant` is
specified.
Teach `inhibitsAllocStackHoisting` about the `targetVariantOSVersionAtLeast`
and `targetOSVersionOrVariantOSVersionAtLeast` builtins.
@tshortli
Copy link
Contributor Author

@swift-ci please test

@tshortli tshortli merged commit 66e2f97 into swiftlang:main Jul 24, 2024
5 checks passed
@tshortli tshortli deleted the maccatalyst-upstream branch July 24, 2024 16:58
tshortli added a commit to tshortli/swift that referenced this pull request Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant