File tree 1 file changed +9
-2
lines changed
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ swift_create_early_driver_copies(swift-frontend)
79
79
80
80
# If a `swift-driver` executable adjacent to the `swift-frontend` executable exists
81
81
# then the `swift` and `swiftc` symlinks should point to it by-default
82
- if (EXISTS "${SWIFT_RUNTIME_OUTPUT_INTDIR} /swift-driver" AND EXISTS "${SWIFT_RUNTIME_OUTPUT_INTDIR} /swift-help" )
82
+ if (EXISTS "${SWIFT_RUNTIME_OUTPUT_INTDIR} /swift-driver${CMAKE_EXECUTABLE_SUFFIX} " AND EXISTS "${SWIFT_RUNTIME_OUTPUT_INTDIR} /swift-help${CMAKE_EXECUTABLE_SUFFIX} " )
83
83
message (STATUS "Pointing 'swift' and 'swiftc' symlinks at 'swift-driver'." )
84
84
swift_create_post_build_symlink(swift-frontend
85
85
SOURCE "swift-driver${CMAKE_EXECUTABLE_SUFFIX} "
@@ -200,4 +200,11 @@ add_dependencies(editor-integration swift-frontend)
200
200
swift_install_in_component(FILES "${SWIFT_RUNTIME_OUTPUT_INTDIR} /swift-indent${CMAKE_EXECUTABLE_SUFFIX} "
201
201
DESTINATION "bin"
202
202
COMPONENT editor-integration)
203
-
203
+ if (EXISTS "${SWIFT_RUNTIME_OUTPUT_INTDIR} /swift-driver${CMAKE_EXECUTABLE_SUFFIX} " AND EXISTS "${SWIFT_RUNTIME_OUTPUT_INTDIR} /swift-help${CMAKE_EXECUTABLE_SUFFIX} " )
204
+ swift_install_in_component(PROGRAMS "${SWIFT_RUNTIME_OUTPUT_INTDIR} /swift-driver${CMAKE_EXECUTABLE_SUFFIX} "
205
+ DESTINATION "bin"
206
+ COMPONENT compiler)
207
+ swift_install_in_component(PROGRAMS "${SWIFT_RUNTIME_OUTPUT_INTDIR} /swift-help${CMAKE_EXECUTABLE_SUFFIX} "
208
+ DESTINATION "bin"
209
+ COMPONENT compiler)
210
+ endif ()
You can’t perform that action at this time.
0 commit comments