Skip to content

Commit c3decb8

Browse files
authored
Merge pull request swiftlang#23711 from Rostepher/fix-stdlib-install-name-dir
[Build System: CMake] Add back the missing install_name_dir for the standard library.
2 parents 6f1e3ed + 3acef63 commit c3decb8

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)