File tree Expand file tree Collapse file tree 3 files changed +18
-6
lines changed
IntegrationTests/allocation-counter-tests-framework/template Expand file tree Collapse file tree 3 files changed +18
-6
lines changed Original file line number Diff line number Diff line change 2828
2929import AtomicCounter
3030import Foundation
31- #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS )
31+ #if canImport(Darwin )
3232import Darwin
33- #else
33+ #elseif canImport(Glibc)
3434import Glibc
35+ #elseif canImport(Musl)
36+ import Musl
37+ #else
38+ #error("Unsupported runtime")
3539#endif
3640
3741func waitForThreadsToQuiesce( shouldReachZero: Bool ) {
Original file line number Diff line number Diff line change 2626//
2727//===----------------------------------------------------------------------===//
2828
29- #if os(macOS) || os(iOS) || os(tvOS) || os(watchOS )
29+ #if canImport(Darwin )
3030import Darwin
31- #else
31+ #elseif canImport(Glibc)
3232import Glibc
33+ #elseif canImport(Musl)
34+ import Musl
35+ #else
36+ #error("Unsupported runtime")
3337#endif
3438
3539/// A threading lock based on `libpthread` instead of `libdispatch`.
Original file line number Diff line number Diff line change 1212//
1313//===----------------------------------------------------------------------===//
1414
15- #if os(Linux)
15+ #if canImport(Darwin)
16+ import Darwin
17+ #elseif canImport(Glibc)
1618import Glibc
19+ #elseif canImport(Musl)
20+ import Musl
1721#else
18- import Darwin
22+ #error("Unsupported runtime")
1923#endif
2024
2125@_exported import Instrumentation
You can’t perform that action at this time.
0 commit comments