Skip to content

Commit 4bacf6d

Browse files
committed
Make sure that the _InternalSwiftScan library can find host dylibs
1 parent 36321dd commit 4bacf6d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tools/libSwiftScan/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@ set_target_properties(libSwiftScan
2929
PROPERTIES
3030
OUTPUT_NAME ${SWIFT_SCAN_LIB_NAME})
3131

32+
if(SWIFT_SWIFT_PARSER)
33+
# Ensure that we can find the host shared libraries.
34+
set_property(
35+
TARGET libSwiftScan
36+
APPEND PROPERTY INSTALL_RPATH "@loader_path/swift/host")
37+
endif()
38+
3239
add_llvm_symbol_exports(libSwiftScan ${LLVM_EXPORTED_SYMBOL_FILE})
3340

3441
# Adds -dead_strip option

0 commit comments

Comments
 (0)