Skip to content

Commit db370de

Browse files
committed
[cmake] Do not use the just built swift link directory for host side executables.
This is just cruft that remained from the time when swift's host/target used the same cmake code. Host tools do not statically link against just built artifacts.
1 parent 4220cc0 commit db370de

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cmake/modules/AddSwift.cmake

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -624,8 +624,7 @@ function(add_swift_host_tool executable)
624624
_add_host_variant_c_compile_flags(${executable})
625625
_add_host_variant_link_flags(${executable})
626626
_add_host_variant_c_compile_link_flags(${executable})
627-
target_link_directories(${executable} PRIVATE
628-
${SWIFTLIB_DIR}/${SWIFT_SDK_${SWIFT_HOST_VARIANT_SDK}_LIB_SUBDIR})
627+
629628
# Force executables linker language to be CXX so that we do not link using the
630629
# host toolchain swiftc.
631630
set_target_properties(${executable} PROPERTIES LINKER_LANGUAGE CXX)

0 commit comments

Comments
 (0)