File tree 3 files changed +18
-6
lines changed
IntegrationTests/allocation-counter-tests-framework/template
3 files changed +18
-6
lines changed Original file line number Diff line number Diff line change 28
28
29
29
import AtomicCounter
30
30
import Foundation
31
- #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS )
31
+ #if canImport(Darwin )
32
32
import Darwin
33
- #else
33
+ #elseif canImport(Glibc)
34
34
import Glibc
35
+ #elseif canImport(Musl)
36
+ import Musl
37
+ #else
38
+ #error("Unsupported runtime")
35
39
#endif
36
40
37
41
func waitForThreadsToQuiesce( shouldReachZero: Bool ) {
Original file line number Diff line number Diff line change 26
26
//
27
27
//===----------------------------------------------------------------------===//
28
28
29
- #if os(macOS) || os(iOS) || os(tvOS) || os(watchOS )
29
+ #if canImport(Darwin )
30
30
import Darwin
31
- #else
31
+ #elseif canImport(Glibc)
32
32
import Glibc
33
+ #elseif canImport(Musl)
34
+ import Musl
35
+ #else
36
+ #error("Unsupported runtime")
33
37
#endif
34
38
35
39
/// A threading lock based on `libpthread` instead of `libdispatch`.
Original file line number Diff line number Diff line change 12
12
//
13
13
//===----------------------------------------------------------------------===//
14
14
15
- #if os(Linux)
15
+ #if canImport(Darwin)
16
+ import Darwin
17
+ #elseif canImport(Glibc)
16
18
import Glibc
19
+ #elseif canImport(Musl)
20
+ import Musl
17
21
#else
18
- import Darwin
22
+ #error("Unsupported runtime")
19
23
#endif
20
24
21
25
@_exported import Instrumentation
You can’t perform that action at this time.
0 commit comments