Skip to content

Commit 01f52a8

Browse files
committed
Fix rpath on macOS
1 parent d5a5f63 commit 01f52a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

patches/swift/04-allow-plugging-in-observer.patch

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
diff --git a/cmake/modules/AddSwift.cmake b/cmake/modules/AddSwift.cmake
2-
index 6d93e52f1d5..9ab79aeb9d6 100644
2+
index 6d93e52f1d5..c4fe5b760a8 100644
33
--- a/cmake/modules/AddSwift.cmake
44
+++ b/cmake/modules/AddSwift.cmake
55
@@ -715,6 +715,7 @@ function(add_swift_host_tool executable)
66

77
# Include the abi stable system stdlib in our rpath.
88
list(APPEND RPATH_LIST "/usr/lib/swift")
9-
+ list(APPEND RPATH_LIST "${SWIFTLIB_DIR}")
9+
+ list(APPEND RPATH_LIST "@executable_path/../lib")
1010

1111
elseif(BOOTSTRAPPING_MODE STREQUAL "CROSSCOMPILE-WITH-HOSTLIBS")
1212

0 commit comments

Comments
 (0)