Skip to content

Conversation

@tshortli
Copy link
Contributor

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

…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
Copy link
Contributor Author

@swift-ci please smoke test

Copy link
Contributor

@artemcm artemcm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, neat.
Looks good to me!

@tshortli tshortli merged commit b5f209d into swiftlang:main Sep 17, 2022
@tshortli tshortli deleted the back-deploy-attr-weak-linkage branch September 17, 2022 03:33
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.

2 participants