File tree 1 file changed +10
-0
lines changed 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -137,6 +137,9 @@ function(add_pure_swift_host_library name)
137
137
add_library (${name} ${libkind} ${APSHL_SOURCES} )
138
138
_add_host_swift_compile_options(${name} )
139
139
140
+ set_property (TARGET ${name}
141
+ PROPERTY BUILD_WITH_INSTALL_RPATH YES )
142
+
140
143
# Respect LLVM_COMMON_DEPENDS if it is set.
141
144
#
142
145
# LLVM_COMMON_DEPENDS if a global variable set in ./lib that provides targets
@@ -257,6 +260,13 @@ function(add_pure_swift_host_tool name)
257
260
add_executable (${name} ${APSHT_SOURCES} )
258
261
_add_host_swift_compile_options(${name} )
259
262
263
+ set_property (TARGET ${name}
264
+ APPEND PROPERTY INSTALL_RPATH
265
+ "@executable_path/../lib/swift/host" )
266
+
267
+ set_property (TARGET ${name}
268
+ PROPERTY BUILD_WITH_INSTALL_RPATH YES )
269
+
260
270
# Respect LLVM_COMMON_DEPENDS if it is set.
261
271
#
262
272
# LLVM_COMMON_DEPENDS if a global variable set in ./lib that provides targets
You can’t perform that action at this time.
0 commit comments