Skip to content

Commit 27b83b0

Browse files
committed
[Unit tests] Use the rpaths determined for unit tests
The function that adds runtime link flags overrides RPATH settings via `BUILD_WITH_INSTALL_RPATH`. Stop doing that for unit tests, because they depend on host libraries built into `lib` not `lib/swift/${platformname}`.
1 parent b5f209d commit 27b83b0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmake/modules/AddSwiftUnittests.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ function(add_swift_unittest test_dirname)
8181

8282
if (SWIFT_SWIFT_PARSER)
8383
_add_swift_runtime_link_flags(${test_dirname} "../../lib" "")
84+
set_property(TARGET ${test_dirname} PROPERTY BUILD_WITH_INSTALL_RPATH OFF)
8485
endif()
8586
endfunction()
8687

0 commit comments

Comments
 (0)