Skip to content

Commit d7a6181

Browse files
committed
stdlib: Enable upcoming MemberImportVisibility feature.
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 Cxx module since the C++ standard library's modularization varies a lot by platform, making it difficult to add the right conditional imports.
1 parent e76bcac commit d7a6181

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

stdlib/cmake/modules/SwiftSource.cmake

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -633,10 +633,8 @@ function(_compile_swift_files
633633
list(APPEND swift_flags "-enable-experimental-feature" "SuppressedAssociatedTypes")
634634
list(APPEND swift_flags "-enable-experimental-feature" "SE427NoInferenceOnExtension")
635635
list(APPEND swift_flags "-enable-experimental-feature" "AllowUnsafeAttribute")
636-
637636
list(APPEND swift_flags "-enable-experimental-feature" "NonescapableTypes")
638-
639-
list(APPEND swift_flags "-enable-experimental-feature" "ExtensionImportVisiblity")
637+
list(APPEND swift_flags "-enable-upcoming-feature" "MemberImportVisibility")
640638

641639
if (SWIFT_STDLIB_ENABLE_STRICT_CONCURRENCY_COMPLETE)
642640
list(APPEND swift_flags "-strict-concurrency=complete")

stdlib/public/Cxx/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ add_swift_target_library(swiftCxx STATIC NO_LINK_NAME IS_STDLIB IS_SWIFT_ONLY
2525
# For functionality that depends on the C++ stdlib, use C++ stdlib overlay (`swiftstd` module).
2626
-Xcc -nostdinc++
2727

28+
# The varying modularization of the C++ standard library on different platforms
29+
# makes it difficult to enable MemberImportVisibility on this target
30+
-disable-upcoming-feature MemberImportVisibility
31+
2832
DEPLOYMENT_VERSION_OSX ${COMPATIBILITY_MINIMUM_DEPLOYMENT_VERSION_OSX}
2933

3034
LINK_FLAGS "${SWIFT_RUNTIME_SWIFT_LINK_FLAGS}"

0 commit comments

Comments
 (0)