Skip to content

Commit 2db4b5c

Browse files
committed
[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.
1 parent 0843891 commit 2db4b5c

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -655,6 +655,10 @@ option(SWIFT_ENABLE_EXPERIMENTAL_OBSERVATION
655655
"Enable build of the Swift observation module"
656656
FALSE)
657657

658+
option(SWIFT_STDLIB_ENABLE_STRICT_CONCURRENCY_COMPLETE
659+
"Build the stdlib with -strict-concurrency=complete"
660+
FALSE)
661+
658662
option(SWIFT_ENABLE_SYNCHRONIZATION
659663
"Enable build of the Swift Synchronization module"
660664
FALSE)

stdlib/cmake/modules/SwiftSource.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -613,6 +613,10 @@ function(_compile_swift_files
613613
list(APPEND swift_flags "-Xfrontend" "-disable-round-trip-debug-types") # NOTE: temporary until we fix mangling!
614614
endif()
615615

616+
if (SWIFT_STDLIB_ENABLE_STRICT_CONCURRENCY_COMPLETE)
617+
list(APPEND swift_flags "-strict-concurrency=complete")
618+
endif()
619+
616620
if (SWIFT_STDLIB_USE_RELATIVE_PROTOCOL_WITNESS_TABLES)
617621
list(APPEND swift_flags "-Xfrontend" "-enable-relative-protocol-witness-tables")
618622
list(APPEND swift_flags "-Xfrontend" "-swift-async-frame-pointer=never")

0 commit comments

Comments
 (0)