[stdlib] Add an option SWIFT_STDLIB_ENABLE_STRICT_CONCURRENCY_COMPLETE to enable building the stdlib with strict-concurrency=complete.

It is currently by default off.
This commit is contained in:
Michael Gottesman
2024-01-29 21:12:52 -08:00
parent 0843891eb9
commit 2db4b5ca52
2 changed files with 8 additions and 0 deletions

View File

@@ -655,6 +655,10 @@ option(SWIFT_ENABLE_EXPERIMENTAL_OBSERVATION
"Enable build of the Swift observation module"
FALSE)
option(SWIFT_STDLIB_ENABLE_STRICT_CONCURRENCY_COMPLETE
"Build the stdlib with -strict-concurrency=complete"
FALSE)
option(SWIFT_ENABLE_SYNCHRONIZATION
"Enable build of the Swift Synchronization module"
FALSE)

View File

@@ -613,6 +613,10 @@ function(_compile_swift_files
list(APPEND swift_flags "-Xfrontend" "-disable-round-trip-debug-types") # NOTE: temporary until we fix mangling!
endif()
if (SWIFT_STDLIB_ENABLE_STRICT_CONCURRENCY_COMPLETE)
list(APPEND swift_flags "-strict-concurrency=complete")
endif()
if (SWIFT_STDLIB_USE_RELATIVE_PROTOCOL_WITNESS_TABLES)
list(APPEND swift_flags "-Xfrontend" "-enable-relative-protocol-witness-tables")
list(APPEND swift_flags "-Xfrontend" "-swift-async-frame-pointer=never")