Skip to content

[Threading][Runtime] Separate threading error function to fix link on Linux. #59457

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 1 commit into from
Jun 15, 2022

Conversation

al45tair
Copy link
Contributor

On Linux it seems that the linker objects, probably because of link order, to the definition of swift::threading::fatal() being in both static libraries. Fix by moving swift::threading::fatal() to its own file in the main runtime as well as the Concurrency runtime.

Fixes #59444.

… Linux.

On Linux it seems that the linker objects, probably because of link order,
to the definition of `swift::threading::fatal()` being in both static
libraries.  Fix by moving `swift::threading::fatal()` to its own file
in the main runtime as well as the Concurrency runtime.

Fixes swiftlang#59444.
@al45tair al45tair requested a review from kateinoigakukun June 15, 2022 07:26
@al45tair
Copy link
Contributor Author

@swift-ci Please smoke test

@al45tair al45tair merged commit 40cee8a into swiftlang:main Jun 15, 2022
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.

[Concurrency] multiple definition of 'swift::threading::fatal' after new Threading library
2 participants