diff --git a/cmake/modules/AddSwift.cmake b/cmake/modules/AddSwift.cmake index 3e918719e3ea4..e0b57ca9a6ad0 100644 --- a/cmake/modules/AddSwift.cmake +++ b/cmake/modules/AddSwift.cmake @@ -958,6 +958,11 @@ endfunction() macro(add_swift_tool_symlink name dest component) add_llvm_tool_symlink(${name} ${dest} ALWAYS_GENERATE) + # This relies on the value of LLVM_TOOLS_INSTALL_DIR + # which is exported by LLVM in LLVMConfig.cmake + # (and currently set to "bin") + # TODO: This will stop working when we will pick up + # an llvm branch that contains https://reviews.llvm.org/D117977 llvm_install_symlink(${name} ${dest} ALWAYS_GENERATE COMPONENT ${component}) endmacro() diff --git a/tools/driver/CMakeLists.txt b/tools/driver/CMakeLists.txt index a732779a2bab3..134c86adbda29 100644 --- a/tools/driver/CMakeLists.txt +++ b/tools/driver/CMakeLists.txt @@ -120,27 +120,6 @@ add_swift_tool_symlink(swift-indent swift-frontend editor-integration) add_swift_tool_symlink(swift-api-digester swift-frontend compiler) add_dependencies(compiler swift-frontend) -swift_install_in_component(FILES "${SWIFT_RUNTIME_OUTPUT_INTDIR}/swift${CMAKE_EXECUTABLE_SUFFIX}" - DESTINATION "bin" - COMPONENT compiler) -swift_install_in_component(FILES "${SWIFT_RUNTIME_OUTPUT_INTDIR}/swiftc${CMAKE_EXECUTABLE_SUFFIX}" - DESTINATION "bin" - COMPONENT compiler) -swift_install_in_component(FILES "${SWIFT_RUNTIME_OUTPUT_INTDIR}/swift-symbolgraph-extract${CMAKE_EXECUTABLE_SUFFIX}" - DESTINATION "bin" - COMPONENT compiler) -swift_install_in_component(FILES "${SWIFT_RUNTIME_OUTPUT_INTDIR}/swift-api-extract${CMAKE_EXECUTABLE_SUFFIX}" - DESTINATION "bin" - COMPONENT compiler) -swift_install_in_component(FILES "${SWIFT_RUNTIME_OUTPUT_INTDIR}/swift-api-digester${CMAKE_EXECUTABLE_SUFFIX}" - DESTINATION "bin" - COMPONENT compiler) add_dependencies(autolink-driver swift-frontend) -swift_install_in_component(FILES "${SWIFT_RUNTIME_OUTPUT_INTDIR}/swift-autolink-extract${CMAKE_EXECUTABLE_SUFFIX}" - DESTINATION "bin" - COMPONENT autolink-driver) add_dependencies(editor-integration swift-frontend) -swift_install_in_component(FILES "${SWIFT_RUNTIME_OUTPUT_INTDIR}/swift-indent${CMAKE_EXECUTABLE_SUFFIX}" - DESTINATION "bin" - COMPONENT editor-integration)