Skip to content

Commit

Permalink
Fix rpath on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
redsun82 committed Mar 29, 2023
1 parent d5a5f63 commit 01f52a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions patches/swift/04-allow-plugging-in-observer.patch
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
diff --git a/cmake/modules/AddSwift.cmake b/cmake/modules/AddSwift.cmake
index 6d93e52f1d5..9ab79aeb9d6 100644
index 6d93e52f1d5..c4fe5b760a8 100644
--- a/cmake/modules/AddSwift.cmake
+++ b/cmake/modules/AddSwift.cmake
@@ -715,6 +715,7 @@ function(add_swift_host_tool executable)

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

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

Expand Down

0 comments on commit 01f52a8

Please sign in to comment.