Skip to content

Commit 8d65427

Browse files
committed
[build] Adjust install name for Differentiation and Concurrency
This way we match the way we build other Swift libraries, to allow the dylib to have an absolute install name and at the same time be found when used as part of a local toolchain (e.g. #31183)
1 parent 15bf047 commit 8d65427

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

stdlib/public/Concurrency/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
add_swift_target_library(swift_Concurrency ${SWIFT_STDLIB_LIBRARY_BUILD_TYPES} IS_STDLIB
1414
Actor.swift
1515
PartialAsyncTask.swift
16+
"${SWIFT_SOURCE_DIR}/stdlib/linker-support/magic-symbols-for-install-name.c"
1617

1718
SWIFT_MODULE_DEPENDS_OSX Darwin
1819
SWIFT_MODULE_DEPENDS_IOS Darwin
@@ -29,5 +30,4 @@ add_swift_target_library(swift_Concurrency ${SWIFT_STDLIB_LIBRARY_BUILD_TYPES} I
2930
${SWIFT_STANDARD_LIBRARY_SWIFT_FLAGS}
3031
-parse-stdlib
3132
LINK_FLAGS "${SWIFT_RUNTIME_SWIFT_LINK_FLAGS}"
32-
DARWIN_INSTALL_NAME_DIR "@rpath"
3333
INSTALL_IN_COMPONENT stdlib)

stdlib/public/Differentiation/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ add_swift_target_library(swift_Differentiation ${SWIFT_STDLIB_LIBRARY_BUILD_TYPE
1717
AnyDifferentiable.swift
1818
ArrayDifferentiation.swift
1919
OptionalDifferentiation.swift
20+
"${SWIFT_SOURCE_DIR}/stdlib/linker-support/magic-symbols-for-install-name.c"
2021

2122
GYB_SOURCES
2223
FloatingPointDifferentiation.swift.gyb
@@ -38,5 +39,4 @@ add_swift_target_library(swift_Differentiation ${SWIFT_STDLIB_LIBRARY_BUILD_TYPE
3839
${SWIFT_STANDARD_LIBRARY_SWIFT_FLAGS}
3940
-parse-stdlib
4041
LINK_FLAGS "${SWIFT_RUNTIME_SWIFT_LINK_FLAGS}"
41-
DARWIN_INSTALL_NAME_DIR "@rpath"
4242
INSTALL_IN_COMPONENT stdlib)

0 commit comments

Comments
 (0)