Skip to content

Conversation

@tshortli
Copy link
Contributor

Cherry-pick of #61169.

When computing the availability of a SILFunction for linkage the OS version specified in the @_backDeploy attribute should be preferred over the version in the @available attribute. This ensures that the corresponding symbol is weakly linked when deploying to older OSes than the back deploy "before" version.

Resolves rdar://99962885

@tshortli tshortli added the r5.7 label Sep 17, 2022
@tshortli tshortli requested a review from nkcsgexi September 17, 2022 00:21
@tshortli tshortli requested a review from a team as a code owner September 17, 2022 00:21
@nkcsgexi
Copy link
Contributor

There seems to be a renamed API in the 5.7 branch.

…S version if present.

When computing the availability of a `SILFunction` for linkage the OS version specified in the `@_backDeploy` attribute should be preferred over the version in the `@available` attribute. This ensures that the corresponding symbol is weakly linked when deploying to older OSes than the back deploy "before" version.

Resolves rdar://99962885
@tshortli tshortli force-pushed the back-deploy-attr-weak-linkage-5.7 branch from bca0b62 to ea96f34 Compare September 17, 2022 02:16
@tshortli
Copy link
Contributor Author

@swift-ci please test

@tshortli tshortli merged commit d234cb3 into swiftlang:release/5.7 Sep 17, 2022
@tshortli tshortli deleted the back-deploy-attr-weak-linkage-5.7 branch September 17, 2022 06:13
@AnthonyLatsis AnthonyLatsis added 🍒 release cherry pick Flag: Release branch cherry picks swift 5.7 labels Jan 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🍒 release cherry pick Flag: Release branch cherry picks swift 5.7

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants