Skip to content

Commit b55057a

Browse files
build: repair the build after the TSCUtility changes
SKSupport now requires a link against Foundation, update the build system to track that dependency. Co-authored-by: Max Desiatov <[email protected]>
1 parent f857dbf commit b55057a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Sources/SKSupport/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,6 @@ add_library(SKSupport STATIC
1010
dlopen.swift)
1111
set_target_properties(SKSupport PROPERTIES
1212
INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_Swift_MODULE_DIRECTORY})
13+
target_link_libraries(SKSupport PRIVATE
14+
TSCBasic
15+
$<$<NOT:$<PLATFORM_ID:Darwin>>:Foundation>)

Sources/SourceKitD/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,6 @@ set_target_properties(SourceKitD PROPERTIES
1515
target_link_libraries(SourceKitD PRIVATE
1616
Csourcekitd
1717
LSPLogging
18-
SKSupport)
18+
SKSupport
19+
TSCBasic
20+
$<$<NOT:$<PLATFORM_ID:Darwin>>:Foundation>)

0 commit comments

Comments
 (0)