mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user