File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
tools/SourceKit/cmake/modules Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -116,6 +116,11 @@ function(add_sourcekit_swift_runtime_link_flags target path HAS_SWIFT_MODULES)
116
116
117
117
endif () # HAS_SWIFT_MODULES AND ASKD_BOOTSTRAPPING_MODE
118
118
119
+ if (SWIFT_SWIFT_PARSER)
120
+ # Add rpath to the host Swift libraries.
121
+ file (RELATIVE_PATH relative_hostlib_path "${path} " "${SWIFTLIB_DIR} /host" )
122
+ list (APPEND RPATH_LIST "@loader_path/${relative_hostlib_path} " )
123
+ endif ()
119
124
elseif (SWIFT_HOST_VARIANT_SDK MATCHES "LINUX|ANDROID|OPENBSD" AND HAS_SWIFT_MODULES AND ASKD_BOOTSTRAPPING_MODE)
120
125
set (swiftrt "swiftImageRegistrationObject${SWIFT_SDK_${SWIFT_HOST_VARIANT_SDK} _OBJECT_FORMAT}-${SWIFT_SDK_${SWIFT_HOST_VARIANT_SDK} _LIB_SUBDIR}-${SWIFT_HOST_VARIANT_ARCH} " )
121
126
if (ASKD_BOOTSTRAPPING_MODE MATCHES "HOSTTOOLS|CROSSCOMPILE" )
You can’t perform that action at this time.
0 commit comments