Skip to content

stdlib: Enable upcoming MemberImportVisibility feature #76665

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

tshortli
Copy link
Contributor

@tshortli tshortli commented Sep 24, 2024

It was already supposed to be enabled, but I forgot to update the CMake when I renamed the feature from ExtensionImportVisibility to MemberImportVisibility.

However, leave it disabled on the CxxStdlib module since the C++ standard library's modularization varies a lot by platform, making it difficult to add the right conditional imports.

@tshortli tshortli requested a review from a team as a code owner September 24, 2024 05:28
@tshortli tshortli force-pushed the stdlib-enable-member-import-visibility branch from 6bb2eea to 3396de2 Compare October 11, 2024 15:50
@tshortli
Copy link
Contributor Author

@swift-ci please smoke test

@tshortli tshortli force-pushed the stdlib-enable-member-import-visibility branch 2 times, most recently from fe40a23 to d7a6181 Compare November 16, 2024 18:53
@tshortli
Copy link
Contributor Author

Now depends on #77662.

@tshortli tshortli force-pushed the stdlib-enable-member-import-visibility branch 3 times, most recently from ab8f30c to f9dceaa Compare November 17, 2024 00:55
@tshortli
Copy link
Contributor Author

swiftlang/swift-driver#1730

@swift-ci please smoke test

@tshortli tshortli changed the title stdlib: Enable MemberImportVisibility experimental feature stdlib: Enable MemberImportVisibility upcoming feature Nov 17, 2024
@tshortli tshortli changed the title stdlib: Enable MemberImportVisibility upcoming feature stdlib: Enable upcoming MemberImportVisibility feature Nov 17, 2024
Comment on lines 28 to 31
# The varying modularization of the C++ standard library on different
# platforms makes it difficult to enable MemberImportVisibility for this
# module
-disable-upcoming-feature MemberImportVisibility
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this flag should probably only be on the CxxStdlib module. The Cxx module doesn't import the C++ standard library and is mostly platform-independent.

@tshortli tshortli force-pushed the stdlib-enable-member-import-visibility branch from f9dceaa to 471fec4 Compare November 18, 2024 17:16
…ure to the frontend.

The legacy driver is still used to build the compiler on Windows, so we need it
to handle these new flags correctly in order to adopt them in the stdlib.
It was already supposed to be enabled, but I forgot to update the CMake when I
renamed the feature from ExtensionImportVisibility to MemberImportVisibility.

However, leave it disabled on the CxxStdlib module since the C++ standard
library's modularization varies a lot by platform, making it difficult to add
the right conditional imports.
@tshortli tshortli force-pushed the stdlib-enable-member-import-visibility branch from 471fec4 to c9c3673 Compare November 18, 2024 18:27
@tshortli
Copy link
Contributor Author

swiftlang/swift-driver#1730

@swift-ci please smoke test

@tshortli tshortli merged commit 2affbd8 into swiftlang:main Nov 18, 2024
3 checks passed
@tshortli tshortli deleted the stdlib-enable-member-import-visibility branch November 18, 2024 23:24
@nkcsgexi
Copy link
Contributor

🎉

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.

3 participants