Skip to content

🍒[cxx-interop] Explicitly disable -fmodules-local-submodule-visibility #65909

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
May 15, 2023

Conversation

egorzhdan
Copy link
Contributor

@egorzhdan egorzhdan commented May 14, 2023

Explanation: Clang implicitly enables local submodule visibility when compiling in C++20 mode. ClangImporter does not support it, so let's disable it explicitly.
Scope: Only has an effect when C++20 mode is enabled: the setting is unaltered when using older C++ modes.
Risk: Low, this does not change the ClangImporter's behavior when C++ interop is not enabled, or when using C++ language version older than C++20.

rdar://108959307 / #65710 (cherry picked from commit aed5614)

Clang implicitly enables local submodule visibility when compiling in C++20 mode. ClangImporter does not support it, so let's disable it explicitly.

rdar://108959307 / #65710
(cherry picked from commit aed5614)
@egorzhdan egorzhdan added the c++ interop Feature: Interoperability with C++ label May 14, 2023
@egorzhdan egorzhdan requested a review from hyp May 14, 2023 17:37
@egorzhdan egorzhdan requested a review from a team as a code owner May 14, 2023 17:37
@egorzhdan
Copy link
Contributor Author

@swift-ci please test

@egorzhdan egorzhdan merged commit ba44ef3 into release/5.9 May 15, 2023
@egorzhdan egorzhdan deleted the egorzhdan/5.9-cxx-disable-local-visibility branch May 15, 2023 18:46
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.

3 participants