Skip to content

StdlibUnittest: import _Concurrency explicitly #39175

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
Sep 7, 2021

Conversation

MaxDesiatov
Copy link
Contributor

StdlibUnittest is built with -disable-implicit-concurrency-module-import
and it uses concurrency feature. Therefore, without explicit import,
StdlibUnittest.swiftmodule doesn't have IMPORTED_MODULE entry of
_Concurrency. And it results link-failure when static linking because
swift_Concurrency is not linked.

Part of SR-9307.

cc @kateinoigakukun

StdlibUnittest is built with `-disable-implicit-concurrency-module-import`
and it uses concurrency feature. Therefore, without explicit import,
StdlibUnittest.swiftmodule doesn't have `IMPORTED_MODULE` entry of
`_Concurrency`. And it results link-failure when static linking because
swift_Concurrency is not linked.
@MaxDesiatov MaxDesiatov requested a review from ktoso September 4, 2021 10:54
@MaxDesiatov
Copy link
Contributor Author

@swift-ci please smoke test

Copy link
Member

@DougGregor DougGregor left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@MaxDesiatov MaxDesiatov merged commit cd90d84 into swiftlang:main Sep 7, 2021
@MaxDesiatov MaxDesiatov deleted the maxd/fix-missing-concurrency branch September 7, 2021 19:41
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.

3 participants