Skip to content

[6.0 🍒][Dependency Scanning] Respect the Language Option for cross-import overlay enablement #74787

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
Jun 28, 2024

Conversation

artemcm
Copy link
Contributor

@artemcm artemcm commented Jun 27, 2024

Cherry-pick of #74750

Explanation: Unlike implicitly-built modules, enabling explicitly-built modules (-explicit-module-build) always resulted in the compiler attempting to detect and import cross-import overlays, regardless of the compiler default and enable/disable flags passed to the compiler. This change alters the dependency scanner to respect the compiler language option to disable or enable cross-import overlay modules (-enable-cross-import-overlays/-disable-cross-import-overlays)
Risk: Low, this change disables existing dependency scanning logic when the cross-import overlay feature is disabled.
Reviewed By: @cachemeifyoucan @nkcsgexi
Testing: Automated test added to the compiler test suite

@artemcm artemcm added 🍒 release cherry pick Flag: Release branch cherry picks swift 6.0 labels Jun 27, 2024
@artemcm artemcm requested a review from nkcsgexi June 27, 2024 17:09
@artemcm artemcm requested a review from a team as a code owner June 27, 2024 17:09
@artemcm
Copy link
Contributor Author

artemcm commented Jun 27, 2024

@swift-ci test

@artemcm artemcm merged commit fc881dc into swiftlang:release/6.0 Jun 28, 2024
5 checks passed
@artemcm artemcm deleted the 60EBM_DisableCrossImports branch June 28, 2024 16:43
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 6.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants