Skip to content

Commit d6b23bb

Browse files
authored
Merge pull request #85635 from kavon/opaque-values/fixes-6
OpaqueValues: provide stdlib build option
2 parents 019520b + 54e71d0 commit d6b23bb

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
@@ -776,6 +776,10 @@ option(SWIFT_STDLIB_ENABLE_STRICT_CONCURRENCY_COMPLETE
776776
"Build the stdlib with -strict-concurrency=complete"
777777
FALSE)
778778

779+
option(SWIFT_STDLIB_ENABLE_SIL_OPAQUE_VALUES
780+
"Build the stdlib with -enable-sil-opaque-values"
781+
FALSE)
782+
779783
option(SWIFT_ENABLE_SYNCHRONIZATION
780784
"Enable build of the Swift Synchronization module"
781785
FALSE)

stdlib/cmake/modules/SwiftSource.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -647,6 +647,10 @@ function(_compile_swift_files
647647
list(APPEND swift_flags "-strict-concurrency=complete")
648648
endif()
649649

650+
if (SWIFT_STDLIB_ENABLE_SIL_OPAQUE_VALUES)
651+
list(APPEND swift_flags "-Xfrontend" "-enable-sil-opaque-values")
652+
endif()
653+
650654
if (SWIFT_STDLIB_USE_RELATIVE_PROTOCOL_WITNESS_TABLES)
651655
list(APPEND swift_flags "-Xfrontend" "-enable-relative-protocol-witness-tables")
652656
list(APPEND swift_flags "-Xfrontend" "-swift-async-frame-pointer=never")

0 commit comments

Comments
 (0)