Skip to content

[concurrency] fixes to enable building swift with concurrency on by default #34609

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 3 commits into from
Nov 6, 2020

Conversation

kavon
Copy link
Member

@kavon kavon commented Nov 6, 2020

The main issue when building the compiler with concurrency enabled by default comes up when the build system begins to build the standard library, etc. The error emitted during the build says that the _Concurrency Swift module was not found. After some discussion with Doug, the best way to fix this issue is to add a flag to the frontend that disables the implicit inclusion of _Concurrency by the compiler, and add that flag when building those libraries during the build of Swift.

Resolves rdar://71045297

TODO

  • Add flag to disable implicit import of _Concurrency module
  • Augment build system to use the new flag
  • Add regression test

kavon added 3 commits November 6, 2020 08:54
This fixes issues when building Swift with concurrency enabled by default. See rdar://71045297

If some of our overlays need to use the concurrency API, they can manually import _Concurrency.
@kavon
Copy link
Member Author

kavon commented Nov 6, 2020

@swift-ci please smoke test and merge

@kavon kavon marked this pull request as ready for review November 6, 2020 20:59
@swift-ci swift-ci merged commit f82e962 into main Nov 6, 2020
@swift-ci swift-ci deleted the disable-implicit-concur-import branch November 6, 2020 23:16
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