File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -2124,3 +2124,8 @@ function(add_swift_host_tool executable)
21242124 endif ()
21252125 endif ()
21262126endfunction ()
2127+
2128+ macro (add_swift_tool_symlink name dest component )
2129+ add_llvm_tool_symlink(${name} ${dest} ALWAYS_GENERATE)
2130+ llvm_install_symlink(${name} ${dest} ALWAYS_GENERATE COMPONENT ${component} )
2131+ endmacro ()
Original file line number Diff line number Diff line change @@ -31,6 +31,10 @@ swift_create_post_build_symlink(swift
3131 DESTINATION "swift-autolink-extract${CMAKE_EXECUTABLE_SUFFIX} "
3232 WORKING_DIRECTORY "${SWIFT_RUNTIME_OUTPUT_INTDIR} " )
3333
34+ add_swift_tool_symlink(swiftc swift compiler)
35+ add_swift_tool_symlink(swift-autolink-extract swift autolink-driver)
36+ add_swift_tool_symlink(swift-format swift editor-integration)
37+
3438# If building as part of clang, make sure the headers are installed.
3539if (NOT SWIFT_BUILT_STANDALONE)
3640 add_dependencies (swift clang-headers)
You can’t perform that action at this time.
0 commit comments