File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -14,17 +14,9 @@ add_swift_host_tool(swift
14
14
15
15
target_link_libraries (swift edit )
16
16
17
- add_custom_command (TARGET swift POST_BUILD
18
- COMMAND "${CMAKE_COMMAND} " "-E" "create_symlink" "swift" "swiftc"
19
- WORKING_DIRECTORY "${SWIFT_RUNTIME_OUTPUT_INTDIR} " )
20
-
21
- add_custom_command (TARGET swift POST_BUILD
22
- COMMAND "${CMAKE_COMMAND} " "-E" "create_symlink" "swift" "swift-autolink-extract"
23
- WORKING_DIRECTORY "${SWIFT_RUNTIME_OUTPUT_INTDIR} " )
24
-
25
- add_custom_command (TARGET swift POST_BUILD
26
- COMMAND "${CMAKE_COMMAND} " "-E" "create_symlink" "swift" "swift-format"
27
- WORKING_DIRECTORY "${SWIFT_RUNTIME_OUTPUT_INTDIR} " )
17
+ add_llvm_tool_symlink (swiftc swift ALWAYS_GENERATE )
18
+ add_llvm_tool_symlink (swift-autolink-extract swift ALWAYS_GENERATE )
19
+ add_llvm_tool_symlink (swift-format swift ALWAYS_GENERATE )
28
20
29
21
# If building as part of clang, make sure the headers are installed.
30
22
if (NOT SWIFT_BUILT_STANDALONE )
You can’t perform that action at this time.
0 commit comments