From 4316e961d121011ff2d5e0878cac893f2da0416a Mon Sep 17 00:00:00 2001 From: Dario Rexin Date: Thu, 16 Apr 2020 00:18:13 -0700 Subject: [PATCH] Revert "Revert "[SourceKit] don't install libdispatch and libBlocksRuntime twice, outside of Mac/Windows"" --- CMakeLists.txt | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4476bbe894498..c334534250777 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1045,11 +1045,13 @@ if(SWIFT_BUILD_SYNTAXPARSERLIB OR SWIFT_BUILD_SOURCEKIT) set(SOURCEKIT_RUNTIME_DIR lib) endif() add_dependencies(sourcekit-inproc BlocksRuntime dispatch) - swift_install_in_component(FILES - $ - $ - DESTINATION ${SOURCEKIT_RUNTIME_DIR} - COMPONENT sourcekit-inproc) + if("${SWIFT_HOST_VARIANT_SDK}" MATCHES "OSX|WINDOWS") + swift_install_in_component(FILES + $ + $ + DESTINATION ${SOURCEKIT_RUNTIME_DIR} + COMPONENT sourcekit-inproc) + endif() if(SWIFT_HOST_VARIANT_SDK STREQUAL WINDOWS) swift_install_in_component(FILES $