Skip to content

Commit 0295a83

Browse files
committed
SourceKit: re-package libdispatch, BlocksRuntime
The SourceKit component requires libdispatch and BlocksRuntime to run. We build the libraries as part of the build and use it via imported targets. Ensure that the dependencies get installed for use at runtime.
1 parent 4bca887 commit 0295a83

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tools/SourceKit/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,13 @@ if(NOT "${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin")
158158
INTERFACE_INCLUDE_DIRECTORIES
159159
${SWIFT_PATH_TO_LIBDISPATCH_SOURCE}/src/BlocksRuntime)
160160

161+
swift_install_in_component(sourcekit-inproc
162+
FILES
163+
$<TARGET_FILE:dispatch>
164+
$<TARGET_FILE:BlocksRuntime>
165+
DESTINATION
166+
lib${LLVM_LIBDIR_SUFFIX})
167+
161168
# FIXME(compnerd) this should be taken care of by the
162169
# INTERFACE_INCLUDE_DIRECTORIES above
163170
include_directories(AFTER

0 commit comments

Comments
 (0)