Skip to content

Commit 996f2ab

Browse files
committed
[Long runtime tests] Link the Objective-C runtime.
The long-running runtime tests depend on the Objective-C runtime on Darwin, so link it directly rather than relying on various uses of __builtin_available to link CoreFoundation for us.
1 parent 1cd5152 commit 996f2ab

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

unittests/runtime/LongTests/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ if(("${SWIFT_HOST_VARIANT_SDK}" STREQUAL "${SWIFT_PRIMARY_VARIANT_SDK}") AND
1616
# ${FOUNDATION_LIBRARY}
1717
# swiftStdlibUnittest${SWIFT_PRIMARY_VARIANT_SUFFIX}
1818
# )
19+
20+
# Link the Objective-C runtime.
21+
list(APPEND PLATFORM_TARGET_LINK_LIBRARIES "objc")
1922
elseif(SWIFT_HOST_VARIANT STREQUAL "linux")
2023
list(APPEND PLATFORM_TARGET_LINK_LIBRARIES
2124
"atomic"

0 commit comments

Comments
 (0)