File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -973,13 +973,15 @@ function(add_swift_host_tool executable)
973
973
INSTALL_RPATH " ${RPATH_LIST} ")
974
974
975
975
elseif(SWIFT_HOST_VARIANT_SDK STREQUAL " LINUX " AND ASHT_HAS_LIBSWIFT AND LIBSWIFT_BUILD_MODE)
976
+ set(swiftrt " swiftImageRegistrationObject${SWIFT_SDK_${SWIFT_HOST_VARIANT_SDK}_OBJECT_FORMAT}-${SWIFT_SDK_${SWIFT_HOST_VARIANT_SDK}_LIB_SUBDIR}-${SWIFT_HOST_VARIANT_ARCH} ")
976
977
if(LIBSWIFT_BUILD_MODE STREQUAL " HOSTTOOLS ")
977
978
# At build time and and run time, link against the swift libraries in the
978
979
# installed host toolchain.
979
980
get_filename_component(swift_bin_dir ${SWIFT_EXEC_FOR_LIBSWIFT} DIRECTORY)
980
981
get_filename_component(swift_dir ${swift_bin_dir} DIRECTORY)
981
982
set(host_lib_dir " ${swift_dir} /lib/swift/linux ")
982
983
984
+ target_link_libraries(${executable} PRIVATE ${swiftrt} )
983
985
target_link_libraries(${executable} PRIVATE " swiftCore ")
984
986
985
987
target_link_directories(${executable} PRIVATE ${host_lib_dir} )
@@ -993,6 +995,7 @@ function(add_swift_host_tool executable)
993
995
if (NOT " ${ASHT_BOOTSTRAPPING} " STREQUAL " 0 ")
994
996
get_bootstrapping_swift_lib_dir(bs_lib_dir " ${ASHT_BOOTSTRAPPING} ")
995
997
target_link_directories(${executable} PRIVATE ${bs_lib_dir} )
998
+ target_link_libraries(${executable} PRIVATE ${swiftrt} )
996
999
target_link_libraries(${executable} PRIVATE " swiftCore ")
997
1000
endif()
998
1001
You can’t perform that action at this time.
0 commit comments