Skip to content

Commit a9566fa

Browse files
committed
move to sourcekit dir
1 parent 65a2b03 commit a9566fa

File tree

9 files changed

+9
-4
lines changed

9 files changed

+9
-4
lines changed

cmake/modules/AddSwift.cmake

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1656,9 +1656,14 @@ function(add_swift_library name)
16561656
# Add dependencies on the (not-yet-created) custom lipo target.
16571657
foreach(DEP ${SWIFTLIB_LINK_LIBRARIES})
16581658
if (NOT "${DEP}" STREQUAL "icucore")
1659+
# Avoid appending SDK kinds after sourcekit
1660+
if ("${DEP}" MATCHES "^sourcekitd")
1661+
add_dependencies(${VARIANT_NAME} "sourcekitd")
1662+
else()
16591663
add_dependencies(${VARIANT_NAME}
16601664
"${DEP}-${SWIFT_SDK_${sdk}_LIB_SUBDIR}")
16611665
endif()
1666+
endif()
16621667
endforeach()
16631668

16641669
if (SWIFTLIB_IS_STDLIB AND SWIFTLIB_STATIC)

tools/CMakeLists.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ endif()
3535

3636
if(SWIFT_BUILD_SOURCEKIT)
3737
add_swift_tool_subdirectory(SourceKit)
38-
if(BUILD_SOURCEKIT_XPC_SERVICE AND BUILD_FOUNDATION)
39-
add_subdirectory(SwiftSourceKitClient)
40-
endif()
4138
endif()
4239

4340
if(SWIFT_HOST_VARIANT STREQUAL "macosx")

tools/SourceKit/tools/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,6 @@ if(HAVE_UNICODE_LIBEDIT)
1010
add_swift_tool_subdirectory(sourcekitd-repl)
1111
endif()
1212
add_swift_tool_subdirectory(complete-test)
13+
if(BUILD_FOUNDATION)
14+
add_subdirectory(SwiftSourceKitClient)
15+
endif()

tools/SwiftSourceKitClient/CMakeLists.txt renamed to tools/SourceKit/tools/SwiftSourceKitClient/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ add_swift_library(swiftSwiftLang SHARED
99
SourceKitdResponse.swift
1010
SourceKitdUID.swift
1111

12-
FRAMEWORK_DEPENDS sourcekitd
12+
LINK_LIBRARIES sourcekitd
1313
SWIFT_COMPILE_FLAGS ${EXTRA_COMPILE_FLAGS}
1414
LINK_FLAGS ${EXTRA_LINKER_FLAGS}
1515
SWIFT_MODULE_DEPENDS Foundation

0 commit comments

Comments
 (0)