Skip to content

Commit

Permalink
[CMake with Swift] Set rpath for stage != 0 bootstrapping builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
DougGregor committed Sep 23, 2022
1 parent fe05b47 commit c50d166
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmake/modules/AddSwift.cmake
Expand Up @@ -577,6 +577,9 @@ function(_add_swift_runtime_link_flags target relpath_to_lib_dir bootstrapping)
if (NOT "${bootstrapping}" STREQUAL "1")
if(${SWIFT_HOST_VARIANT_SDK} IN_LIST SWIFT_DARWIN_PLATFORMS)
target_link_directories(${target} PRIVATE "${sdk_dir}")

# Include the abi stable system stdlib in our rpath.
set(swift_runtime_rpath "/usr/lib/swift")
endif()
endif()
endif()
Expand Down

0 comments on commit c50d166

Please sign in to comment.