File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -270,6 +270,10 @@ option(SWIFT_STDLIB_ENABLE_RESILIENCE
270
270
"Build the standard libraries and overlays with resilience enabled; see docs/LibraryEvolution.rst"
271
271
FALSE )
272
272
273
+ option (SWIFT_RUNTIME_ENABLE_COW_EXISTENTIALS
274
+ "Build the runtime with a copy-on-write implementation for opaque existentials"
275
+ FALSE )
276
+
273
277
option (SWIFT_STDLIB_USE_NONATOMIC_RC
274
278
"Build the standard libraries and overlays with nonatomic reference count operations enabled"
275
279
FALSE )
Original file line number Diff line number Diff line change @@ -243,6 +243,10 @@ function(_compile_swift_files
243
243
list (APPEND swift_flags "-Xfrontend" "-assume-single-threaded" )
244
244
endif ()
245
245
246
+ if (SWIFT_RUNTIME_ENABLE_COW_EXISTENTIALS )
247
+ list (APPEND swift_flags "-Xfrontend" "-enable-cow-existentials" )
248
+ endif ()
249
+
246
250
if (SWIFT_STDLIB_ENABLE_SIL_OWNERSHIP AND SWIFTFILE_IS_STDLIB )
247
251
list (APPEND swift_flags "-Xfrontend" "-enable-sil-ownership" )
248
252
endif ()
You can’t perform that action at this time.
0 commit comments