Skip to content

Commit 3b7af39

Browse files
committed
Build in Swift 6 mode using CMake
The CMake build should only be run when building an entire toolchain, which means that we are guaranteed to have a Swift 6 compiler at hand and can unconditionally enable Swift 6 mode.
1 parent cc8ce97 commit 3b7af39

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
add_compile_options("$<$<COMPILE_LANGUAGE:Swift>:SHELL:-package-name SourceKitLSP>")
2+
add_compile_options("$<$<COMPILE_LANGUAGE:Swift>:SHELL:-swift-version 6>")
23
add_subdirectory(BuildServerProtocol)
34
add_subdirectory(BuildSystemIntegration)
45
add_subdirectory(CAtomics)

0 commit comments

Comments
 (0)