Skip to content

[cxx-interop] Allow using non-resilient C++ symbols in resilient overlays #77897

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
Dec 3, 2024

Conversation

egorzhdan
Copy link
Contributor

@egorzhdan egorzhdan commented Dec 2, 2024

If a Swift module built with library evolution enabled is an overlay of a C++ module, allow referring to the non-resilient C++ symbols from the Swift code.

Overlays are usually built and shipped along with the C/C++ modules, so library evolution is less of a concern there. A developer providing a Swift overlay for a C++ library would expect to be able to refer to the symbols from the C++ library within the overlay.

@egorzhdan egorzhdan added the c++ interop Feature: Interoperability with C++ label Dec 2, 2024
@egorzhdan
Copy link
Contributor Author

@swift-ci please test

@egorzhdan egorzhdan marked this pull request as ready for review December 2, 2024 18:26
Copy link
Contributor

@Xazax-hun Xazax-hun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add the reasoning to the commit message why we believe skipping checking for overlays is OK? The code changes look good to me.

…lays

If a Swift module built with library evolution enabled is an overlay of a C++ module, allow referring to the non-resilient C++ symbols from the Swift code.

Overlays are usually built and shipped along with the C/C++ modules, so library evolution is less of a concern there. A developer providing a Swift overlay for a C++ library would expect to be able to refer to the symbols from the C++ library within the overlay.
@egorzhdan egorzhdan force-pushed the egorzhdan/allow-nonresilient-cxx-in-overlay branch from 32d551e to f420456 Compare December 2, 2024 19:44
@egorzhdan
Copy link
Contributor Author

@swift-ci please test

@egorzhdan
Copy link
Contributor Author

@Xazax-hun yeap, you're right, I should've added a note on that.

@egorzhdan egorzhdan merged commit 475e544 into main Dec 3, 2024
5 checks passed
@egorzhdan egorzhdan deleted the egorzhdan/allow-nonresilient-cxx-in-overlay branch December 3, 2024 12:57
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++
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants