Skip to content

[6.2][BridgingHeaderChaining] Bind bridging header module when load module #80688

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

cachemeifyoucan
Copy link
Contributor

  • Description: When loading a module with embedded bridging header, bind the bridging header module in the context when bridging header auto chaining is used. This is because all the bridging header contents are chained into a PCH file so binary module with bridging header should reference the PCH file for all declarations.
  • Orignal PR: [BridgingHeaderChaining] Bind bridging header module when load module #80512
  • Issue: rdar://148538787
  • Reviewed by: @artemcm
  • Tests: Unit test + full SWB testing
  • Risk: Low

When loading a module with embedded bridging header, bind the bridging
header module in the context when bridging header auto chaining is used.
This is because all the bridging header contents are chained into a PCH
file so binary module with bridging header should reference the PCH file
for all declarations.

rdar://148538787
(cherry picked from commit 02ee2f4)
@cachemeifyoucan cachemeifyoucan requested a review from a team as a code owner April 9, 2025 17:33
@cachemeifyoucan cachemeifyoucan changed the title [BridgingHeaderChaining] Bind bridging header module when load module [6.2][BridgingHeaderChaining] Bind bridging header module when load module Apr 9, 2025
@cachemeifyoucan
Copy link
Contributor Author

@swift-ci please test

@cachemeifyoucan
Copy link
Contributor Author

@swift-ci please test macOS platform

@cachemeifyoucan
Copy link
Contributor Author

cachemeifyoucan commented Apr 16, 2025

@nkcsgexi @fredriss Ping. Can I get an approval on this PR?

@nkcsgexi
Copy link
Contributor

do we only chain bridging headers when CAS is enabled? or every builds with explicit modules on?

@cachemeifyoucan
Copy link
Contributor Author

do we only chain bridging headers when CAS is enabled? or every builds with explicit modules on?

Only CAS is on for now.

@cachemeifyoucan cachemeifyoucan merged commit dc045d3 into swiftlang:release/6.2 Apr 16, 2025
5 checks passed
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