Skip to content

Commit eab6531

Browse files
committed
Distributed: do not import all of Darwin to implement locking facilities
At the same time, drop that dependency in the new build system, so that we don't add an additional linkage for Darwin platforms compared to what we are doing in the current build system. Addresses rdar://158314427
1 parent 02e5d34 commit eab6531

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Runtimes/Supplemental/Distributed/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,7 @@ target_link_libraries(swiftDistributed PRIVATE
143143
swift_Concurrency
144144
swift_Builtin_float
145145
$<$<PLATFORM_ID:Android>:swiftAndroid>
146-
$<$<PLATFORM_ID:Windows>:swiftWinSDK>
147-
$<$<PLATFORM_ID:Darwin>:swiftDarwin>)
146+
$<$<PLATFORM_ID:Windows>:swiftWinSDK>)
148147

149148
install(TARGETS swiftDistributed
150149
EXPORT SwiftDistributedTargets

stdlib/public/Distributed/LocalTestingDistributedActorSystem.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212

1313
import Swift
1414

15-
#if canImport(Darwin)
16-
import Darwin
15+
#if canImport(Darwin.os.lock)
16+
import Darwin.os.lock
1717
#elseif canImport(Glibc)
1818
import Glibc
1919
#elseif canImport(Musl)

0 commit comments

Comments
 (0)