Skip to content

Commit c50d166

Browse files
committed
[CMake with Swift] Set rpath for stage != 0 bootstrapping builds.
1 parent fe05b47 commit c50d166

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmake/modules/AddSwift.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -577,6 +577,9 @@ function(_add_swift_runtime_link_flags target relpath_to_lib_dir bootstrapping)
577577
if (NOT "${bootstrapping}" STREQUAL "1")
578578
if(${SWIFT_HOST_VARIANT_SDK} IN_LIST SWIFT_DARWIN_PLATFORMS)
579579
target_link_directories(${target} PRIVATE "${sdk_dir}")
580+
581+
# Include the abi stable system stdlib in our rpath.
582+
set(swift_runtime_rpath "/usr/lib/swift")
580583
endif()
581584
endif()
582585
endif()

0 commit comments

Comments
 (0)