Skip to content
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

SIL: Revert public linkage for @_silgen_name forward declarations #78244

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

tshortli
Copy link
Contributor

It turns out that the stdlib build depends on internal functions with @_silgen_name getting hidden linkage in some configurations. Instead of messing with the linkage computation, just fix the stdlib/Error.swift test by making setWillThrowHandler public to give it the right linkage.

Reverts #78183.

Resolves rdar://141590619.

It turns out that the stdlib build depends on `internal` functions with
`@_silgen_name` getting hidden linkage in some configurations. Instead of
messing with the linkage computation, just fix the `stdlib/Error.swift` test by
making `setWillThrowHandler` `public` to give it the right linkage.

Resolves rdar://141590619.
@tshortli tshortli requested review from a team, rjmccall and jckarter as code owners December 17, 2024 16:40
@tshortli
Copy link
Contributor Author

@swift-ci please smoke test

Copy link
Contributor

@hamishknight hamishknight left a comment

Choose a reason for hiding this comment

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

Thank you!

@tshortli tshortli enabled auto-merge December 17, 2024 18:15
@tshortli tshortli merged commit 734b37d into swiftlang:main Dec 17, 2024
3 checks passed
@tshortli tshortli deleted the revert-silgen-name-public-linkage branch December 17, 2024 20:42
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