Skip to content

[5.5] Bug fixes and test updates for emit-module-separately #849

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 8 commits into from
Sep 23, 2021

Conversation

xymus
Copy link
Contributor

@xymus xymus commented Sep 22, 2021

Bring in fixes to support using and testing emit-module-separately in 5.5. This does not enable emit-module-separately by default, merge-module remains the default.

Cherry-pick of #668 and #790.

This is aligned with the compiler-side swiftlang/swift#39249.

We want to make this feature the default soon. Let's add a flag to
disable it beforehand to be safe. Once emit-module-separately is the
default, passing this flag will force the driver to rely on the
merge-module incremental build mode.

rdar://78228466
With emit-module-separately by default the compiler no longer use
compile jobs for -emit-module.
The linker uses the swiftmodule file generated by the emit-module job.
…eduled

This prevents generating duplicate files and feeding duplicated
diagnostics to Xcode.
@xymus xymus requested a review from a team as a code owner September 22, 2021 20:14
@xymus
Copy link
Contributor Author

xymus commented Sep 22, 2021

@swift-ci Please test

@xymus xymus merged commit 18ab0ce into swiftlang:release/5.5 Sep 23, 2021
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