Skip to content

Commit 0ab98fc

Browse files
committed
[swift-lang] Fix dependency on sourcekitd module
The link dependency is not sufficient, because this code depends on the sourcekitd header and module map, which are produced during the build process. This started failing after edbe22b, where the dependency on `sourcekitd-test` was removed. That dependency was itself wrong, but it happened to be a good enough approximation that we never saw issues.
1 parent a61d220 commit 0ab98fc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

stdlib/tools/swift-lang/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ add_swift_target_library(swiftSwiftLang SHARED
1818
GYB_SOURCES
1919
UIDs.swift.gyb
2020

21+
DEPENDS sourcekitd
2122
SWIFT_MODULE_DEPENDS_OSX Darwin Foundation
2223
PRIVATE_LINK_LIBRARIES sourcekitd
2324
SWIFT_COMPILE_FLAGS -F${CMAKE_BINARY_DIR}/${CMAKE_CFG_INTDIR}/lib

0 commit comments

Comments
 (0)