Skip to content

Commit c5f3634

Browse files
committed
Add version 6 and warning flags to CMake file
1 parent 4082291 commit c5f3634

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

CMakeLists.txt

+5-1
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ list(APPEND _Foundation_common_build_flags
112112
"-Wno-unused-function"
113113
"-Wno-microsoft-enum-forward-reference"
114114
"-Wno-int-conversion"
115+
"-Wno-switch"
115116
"-fblocks")
116117

117118
if(NOT "${CMAKE_C_SIMULATE_ID}" STREQUAL "MSVC")
@@ -139,8 +140,11 @@ endif()
139140
# Swift build flags (Foundation, FoundationNetworking, FoundationXML)
140141
set(_Foundation_swift_build_flags)
141142
list(APPEND _Foundation_swift_build_flags
143+
"-swift-version 6"
142144
"-DDEPLOYMENT_RUNTIME_SWIFT"
143-
"-DSWIFT_CORELIBS_FOUNDATION_HAS_THREADS")
145+
"-DSWIFT_CORELIBS_FOUNDATION_HAS_THREADS"
146+
"-Xfrontend"
147+
"-require-explicit-sendable")
144148

145149
if(CMAKE_SYSTEM_NAME STREQUAL "Linux" OR CMAKE_SYSTEM_NAME STREQUAL "Android")
146150
list(APPEND _Foundation_common_build_flags

0 commit comments

Comments
 (0)