Skip to content

[6.0🍒][Explicit Module Builds][SwiftDrver] Cherry-pick Explicit Module Loading fixes and improvements #1575

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
Apr 2, 2024

Conversation

artemcm
Copy link
Contributor

@artemcm artemcm commented Apr 1, 2024

Explanation:
This PR is a collection of Explicit Module Build improvements and fixes:

Risk: Low. Code-paths disabled by-default and the changes are meant to improve overall soundness and performance of builds.

Testing: Each of the above changes has corresponding test-suite additions.

Reviewed By: @nkcsgexi

artemcm added 3 commits April 1, 2024 10:28
…bridging header dependencies

When passing in '-explicit-swift-module-map-file', specify which Clang modules are dependencies of textual headers of the main module and binary Swift module dependencies.
This relies on a new entry-point in 'libSwiftScan': 'swiftscan_swift_binary_detail_get_header_dependency_module_dependencies'.
The compiler will then use this information to determine which Clang modules require an explicit '-fmodule-map-file' ClangImporter input.
… the target Swift module, continue enumerating other possible paths
@artemcm artemcm requested a review from nkcsgexi April 1, 2024 20:44
@artemcm
Copy link
Contributor Author

artemcm commented Apr 1, 2024

@swift-ci test

@artemcm
Copy link
Contributor Author

artemcm commented Apr 1, 2024

@swift-ci test Windows platform

@artemcm artemcm merged commit 0c8e041 into swiftlang:release/6.0 Apr 2, 2024
3 checks passed
@artemcm artemcm deleted the 60EBMChanges branch April 2, 2024 16:38
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