Skip to content

Commit 3acef63

Browse files
committed
[Build System: CMake] Add back the missing install_name_dir for the standard library.
1 parent a9d4c6e commit 3acef63

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmake/modules/AddSwift.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1029,6 +1029,10 @@ function(_add_swift_library_single target name)
10291029
if(SWIFTLIB_SINGLE_SDK IN_LIST SWIFT_APPLE_PLATFORMS)
10301030
set(install_name_dir "@rpath")
10311031

1032+
if(SWIFTLIB_SINGLE_IS_STDLIB)
1033+
set(install_name_dir "${SWIFT_DARWIN_STDLIB_INSTALL_NAME_DIR}")
1034+
endif()
1035+
10321036
# Always use @rpath for XCTest
10331037
if(module_name STREQUAL "XCTest")
10341038
set(install_name_dir "@rpath")

0 commit comments

Comments
 (0)