Frontend: Introduce an alias for the NoncopyableGenerics experimental feature.

The `.swiftinterface` of the standard library must remain compatible with some
older compilers. Unfortunately, some of those older compilers do not allow the
experimental feature `NoncopyableGenerics` to be enabled in production. To
allow the stdlib to build with non-copyable generics enabled and still have the
older compilers consume its interface, we have to use a new experimental
feature identifier that they do not know about.

Partially resolves rdar://125138945
This commit is contained in:
Allan Shortlidge
2024-03-26 18:31:03 -07:00
parent 418dd95d8e
commit 2813fbe309
4 changed files with 9 additions and 1 deletions

View File

@@ -612,7 +612,7 @@ function(_compile_swift_files
list(APPEND swift_flags "-experimental-hermetic-seal-at-link")
endif()
list(APPEND swift_flags "-enable-experimental-feature" "NoncopyableGenerics")
list(APPEND swift_flags "-enable-experimental-feature" "NoncopyableGenerics2")
if(SWIFT_ENABLE_EXPERIMENTAL_NONESCAPABLE_TYPES)
list(APPEND swift_flags "-enable-experimental-feature" "NonescapableTypes")