mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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
This commit is contained in:
@@ -12,8 +12,8 @@
|
||||
|
||||
import Swift
|
||||
|
||||
#if canImport(Darwin)
|
||||
import Darwin
|
||||
#if canImport(Darwin.os.lock)
|
||||
import Darwin.os.lock
|
||||
#elseif canImport(Glibc)
|
||||
import Glibc
|
||||
#elseif canImport(Musl)
|
||||
|
||||
Reference in New Issue
Block a user