Skip to content

[5.10 🍒][Explicit Modules] Fix detection of a type-checking action in 'ExplicitModuleInterfaceBuilder' #68599

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

Conversation

artemcm
Copy link
Contributor

@artemcm artemcm commented Sep 18, 2023

Cherry-pick of #68598

• Release: Swift 5.10
• Explanation: When we run an interface verification tasks with Explicit module builds, we directly invoke a '-explicit-interface-module-build' instance with a '-typecheck-module-from-interface' action. So the builder needs to recognize this as a typechecking invocation. In implicit builds, this gets lowered into a separate compiler sub-instance with a '-typecheck' action, for some reason.
• Scope of Issue: Clients who disable verification of emitted module interface will still see error diagnostics, instead of expected warnings, from verification jobs.
• Origination: Explicit Module Build feature development recently enabled explicit interface build for Interface verification jobs.
• Reviewed By: @tshortli @xymus @nkcsgexi
• Automated Testing: Test added to the compiler test suite

resolves rdar://115565571

@artemcm artemcm added 🍒 release cherry pick Flag: Release branch cherry picks swift 5.10 labels Sep 18, 2023
@artemcm artemcm requested a review from nkcsgexi September 18, 2023 21:55
@artemcm artemcm requested a review from a team as a code owner September 18, 2023 21:55
@artemcm
Copy link
Contributor Author

artemcm commented Sep 18, 2023

@swift-ci test

…itModuleInterfaceBuilder'

When we run an interface verification tasks with Explicit module builds, we directly invoke a '-explicit-interface-module-build' instance with a '-typecheck-module-from-interface' action. So the builder needs to recognize this as a typechecking invocation. In implicit builds, this gets lowered into a separate compiler sub-instance with a '-typecheck' action, for some reason.

resolves rdar://115565571
@artemcm artemcm force-pushed the 510ExplicitInterfaceTypecheckFix branch from bca3ae4 to 6bcdedf Compare September 19, 2023 17:39
@artemcm
Copy link
Contributor Author

artemcm commented Sep 19, 2023

@swift-ci test

@artemcm artemcm merged commit e7f4cb2 into swiftlang:release/5.10 Sep 21, 2023
@artemcm artemcm deleted the 510ExplicitInterfaceTypecheckFix branch September 21, 2023 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks swift 5.10
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants