Skip to content

Commit 94995b7

Browse files
committed
Set Swift language version to 5
The swift version impacts how swift interfaces work so it's important that we set this explicitly on Apple platforms. Setting it explicitly now.
1 parent 4dae976 commit 94995b7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Runtimes/Core/cmake/caches/Vendors/Apple/apple-common.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ set(SwiftCore_ENABLE_ONONESUPPORT OFF CACHE BOOL "")
1717

1818
set(SwiftCore_INSTALL_NESTED_SUBDIR OFF CACHE BOOL "")
1919

20+
set(CMAKE_Swift_LANGUAGE_VERSION "5" CACHE STRING "swift language version")
2021
set(CMAKE_CXX_FLAGS_MINSIZEREL "-Os -g -DNDEBUG" CACHE STRING "")
2122
set(CMAKE_C_FLAGS_MINSIZEREL "-Os -g -DNDEBUG" CACHE STRING "")
2223
set(CMAKE_Swift_FLAGS_MINSIZEREL "-Osize -g" CACHE STRING "")

0 commit comments

Comments
 (0)