Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -776,6 +776,10 @@ option(SWIFT_STDLIB_ENABLE_STRICT_CONCURRENCY_COMPLETE
"Build the stdlib with -strict-concurrency=complete"
FALSE)

option(SWIFT_STDLIB_ENABLE_SIL_OPAQUE_VALUES
"Build the stdlib with -enable-sil-opaque-values"
FALSE)

option(SWIFT_ENABLE_SYNCHRONIZATION
"Enable build of the Swift Synchronization module"
FALSE)
Expand Down
4 changes: 4 additions & 0 deletions stdlib/cmake/modules/SwiftSource.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,10 @@ function(_compile_swift_files
list(APPEND swift_flags "-strict-concurrency=complete")
endif()

if (SWIFT_STDLIB_ENABLE_SIL_OPAQUE_VALUES)
list(APPEND swift_flags "-Xfrontend" "-enable-sil-opaque-values")
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")
Expand Down