Skip to content

Import _Concurrency where needed #5682

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
Jul 22, 2022
Merged

Import _Concurrency where needed #5682

merged 1 commit into from
Jul 22, 2022

Conversation

neonichu
Copy link
Contributor

In some environments we have to disable the implicit import of concurrency for reasons, so we need to explicitly import the module where needed.

Note: ideally, we would catch this by adding -disable-implicit-concurrency-module-import to the bootstrap invocation of swift-build, but I wasn't able to get that working locally without the inferior swift-build crashing on me. I'll open a separate draft PR for that change that we can land once that has been figured out.

rdar://97387827

In some environments we have to disable the implicit import of concurrency for reasons, so we need to explicitly import the module where needed.

Note: ideally, we would catch this by adding `-disable-implicit-concurrency-module-import` to the bootstrap invocation of `swift-build`, but I wasn't able to get that working locally without the inferior `swift-build` crashing on me. I'll open a separate draft PR for that change that we can land once that has been figured out.

rdar://97387827
@neonichu neonichu requested a review from abertelrud as a code owner July 22, 2022 00:13
@neonichu neonichu self-assigned this Jul 22, 2022
@neonichu neonichu requested review from tomerd and elsh as code owners July 22, 2022 00:13
@neonichu
Copy link
Contributor Author

@swift-ci please smoke test

@neonichu
Copy link
Contributor Author

In #5683, I'll be adding the relevant options to bootstrap.

@neonichu neonichu enabled auto-merge (squash) July 22, 2022 00:25
@neonichu neonichu merged commit ec5264d into main Jul 22, 2022
@neonichu neonichu deleted the explicit-concurrency branch July 22, 2022 17:47
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