Skip to content

[6.2 🍒][Dependency Scanning][C++ Interop] Remap lookup of Clang module CxxStdlib to std #81682

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

Open
wants to merge 1 commit into
base: release/6.2
Choose a base branch
from

Conversation

artemcm
Copy link
Contributor

@artemcm artemcm commented May 21, 2025

Cherry-pick of #81651

  • Explanation: Ensure we do not directly lookup clang module CxxStdlib, because one does not exist. Instead, various components of the compiler remap this lookup to a Clang module called std. This adds one such missing remap.

  • Scope: Builds with Explicitly-Built modules and C++Interop both enabled which bring in the Swift overlay of the C++ standard library (CxxStdlib)

  • Risk: Low, this code change should only affect scenarios which were previously guaranteed to fail and should not affect other code.

  • Problem: rdar://151718115

  • Reviewed By: @cachemeifyoucan, @j-hui

  • Original PR: [Dependency Scanning][C++ Interop] Remap lookup of Clang module CxxStdlib to std #81651

…tdlib' to 'std'

Otherwise querying this clang module, e.g. from the corresponding Swift overlay's underlying module import, will fail, since no such module exists.

Resolves rdar://151718115
@artemcm artemcm requested a review from nkcsgexi May 21, 2025 17:03
@artemcm artemcm requested a review from a team as a code owner May 21, 2025 17:03
@artemcm artemcm added c++ interop Feature: Interoperability with C++ 🍒 release cherry pick Flag: Release branch cherry picks swift 6.2 labels May 21, 2025
@artemcm
Copy link
Contributor Author

artemcm commented May 21, 2025

@swift-ci test

@artemcm artemcm enabled auto-merge May 21, 2025 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ interop Feature: Interoperability with C++ 🍒 release cherry pick Flag: Release branch cherry picks swift 6.2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant