File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 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)
137137 add_library (${name} ${libkind} ${APSHL_SOURCES} )
138138 _add_host_swift_compile_options(${name} )
139139
140+ set_property (TARGET ${name}
141+ PROPERTY BUILD_WITH_INSTALL_RPATH YES )
142+
140143 # Respect LLVM_COMMON_DEPENDS if it is set.
141144 #
142145 # LLVM_COMMON_DEPENDS if a global variable set in ./lib that provides targets
@@ -257,6 +260,13 @@ function(add_pure_swift_host_tool name)
257260 add_executable (${name} ${APSHT_SOURCES} )
258261 _add_host_swift_compile_options(${name} )
259262
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+
260270 # Respect LLVM_COMMON_DEPENDS if it is set.
261271 #
262272 # 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