Skip to content

Commit 10cc06f

Browse files
authored
Merge pull request swiftlang#19911 from atrick/cmake-stdlib-exclusivity
Fix cmake flag: SWIFT_ENABLE_STDLIBCORE_EXCLUSIVITY_CHECKING
2 parents ac259dc + 8b9c37d commit 10cc06f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmake/modules/SwiftSource.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,10 @@ function(_compile_swift_files
245245
list(APPEND swift_flags "-Xfrontend" "-enable-sil-ownership")
246246
endif()
247247

248+
if(SWIFT_ENABLE_STDLIBCORE_EXCLUSIVITY_CHECKING AND SWIFTFILE_IS_STDLIB)
249+
list(APPEND swift_flags "-Xfrontend" "-enforce-exclusivity=checked")
250+
endif()
251+
248252
if(SWIFT_EMIT_SORTED_SIL_OUTPUT)
249253
list(APPEND swift_flags "-Xfrontend" "-emit-sorted-sil")
250254
endif()

0 commit comments

Comments
 (0)