Skip to content

[6.0 🍒][Explicit Module Builds] Remove dead/incorrect code for handling header inputs of binary module dependencies #1654

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 Jul 8, 2024

  • Explanation: As of [Dependency Scanning] Scan header inputs of binary Swift module dependencies swift#72067, we serialize (bridging) .h inputs directly into binary .swiftmodule files, because their clients may not be able to use the binary module's corresponding .pch files due to a compilation context mismatch. The clients of such binary modules then consume the serialized .h files directly, and compile them, implicitly, using explicit module dependencies collected during scan of such header files. This change removes leftover code that relied on a prior, incorrect, assumption that we pass on binary dependencies' PCH inputs to their clients.
  • Scope: This affects Explicit Module Builds where source client being compiled depends on a binary-only .swiftmodule dependency which was built with a bridging header.
  • Risk: Low. This change only deletes a code-path that previously was extremely likely to lead to a compilation error downstream.
  • Issue/Radar: rdar://131261765
  • Original PR: [Explicit Module Builds] Remove dead/incorrect code for handling header inputs of binary module dependencies #1653
  • Reviewed By: @cachemeifyoucan

…er inputs of binary module dependencies

As of swiftlang/swift#72067, we instead serialize `.h` inputs directly into binary `.swiftmodule` files, because their clients may not be able to use the dependnecies' corresponding `.pch` files due to a compilation context mismatch. The clients of such binary modules then consume the serialized `.h` files directly, and compile them, implicitly, using explicit module dependencies collected during scan of such header files.

Resolves rdar://131261765
@artemcm
Copy link
Contributor Author

artemcm commented Jul 8, 2024

@swift-ci test

@artemcm artemcm merged commit 5fa2596 into swiftlang:release/6.0 Jul 8, 2024
3 checks passed
@artemcm artemcm deleted the 60RemoveDeadBinaryDepPCHCode branch July 8, 2024 23:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants