Skip to content

[5.10 🍒] Always disable requiring Foundation for '@objc' when building/typechecking interfaces #68914

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

Conversation

artemcm
Copy link
Contributor

@artemcm artemcm commented Oct 2, 2023

Cherry-pick of #68913

• Release: Swift 5.10
• Explanation: Today, this (-disable-objc-attr-requires-foundation-module) is an extra flag we add in InterfaceSubContextDelegateImpl::inheritOptionsForBuildingInterface, which does not seem right for all cases, such as explicit interface build and verify jobs, as it is not inherited from the parent invocation. It should instead just be the default for these frontend actions.
• Scope of Issue: Explicit module builds invoke interface verification jobs which may hard fail upon encountering @objc if Foundation module is not imported by the interface. This is not meant to be a hard error.
• Risk: Minimal, this change sets the default to match behavior of implicit builds.
• Origination: Explicit Module Build feature development.

Resolves rdar://116008985

@artemcm artemcm requested a review from nkcsgexi October 2, 2023 17:41
@artemcm artemcm requested a review from a team as a code owner October 2, 2023 17:41
@artemcm
Copy link
Contributor Author

artemcm commented Oct 2, 2023

@swift-ci test

@artemcm artemcm force-pushed the 510NoObjCRequiresFoundationInInterfaceTypecheck branch from 00088a0 to 78341b9 Compare October 2, 2023 17:42
@artemcm
Copy link
Contributor Author

artemcm commented Oct 2, 2023

@swift-ci test

@artemcm artemcm merged commit 66ab190 into swiftlang:release/5.10 Oct 2, 2023
@artemcm artemcm deleted the 510NoObjCRequiresFoundationInInterfaceTypecheck branch October 2, 2023 22:34
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