Skip to content

Commit c149be1

Browse files
committed
[bootstrap] Add rpath for swiftpm-xctest-helper on macOS.
Add an extra rpath for swiftpm-xctest-helper on macOS: `@executable_path/../../../lib/swift/macosx`.
1 parent d196d9d commit c149be1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Sources/swiftpm-xctest-helper/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,10 @@
99
add_executable(swiftpm-xctest-helper
1010
main.swift)
1111

12+
if(CMAKE_HOST_SYSTEM_NAME STREQUAL Darwin)
13+
target_link_options(swiftpm-xctest-helper PRIVATE
14+
"-Xlinker -rpath -Xlinker @executable_path/../../../lib/swift/macosx")
15+
endif()
16+
1217
install(TARGETS swiftpm-xctest-helper
1318
RUNTIME DESTINATION bin)

0 commit comments

Comments
 (0)