Skip to content

Commit 0b9ab66

Browse files
authored
Android support (#163)
1 parent 5293d4e commit 0b9ab66

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

Sources/Instrumentation/Locks.swift

+2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
import Darwin
3131
#elseif canImport(Glibc)
3232
import Glibc
33+
#elseif canImport(Android)
34+
import Android
3335
#elseif canImport(Musl)
3436
import Musl
3537
#else

Sources/Tracing/TracingTime.swift

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
import Darwin
2020
#elseif canImport(Glibc)
2121
import Glibc
22+
#elseif canImport(Android)
23+
import Android
2224
#elseif canImport(Musl)
2325
import Musl
2426
#else

Tests/TracingTests/TracerTests.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import XCTest
1818

1919
@testable @_spi(Locking) import Instrumentation
2020

21-
#if os(Linux)
21+
#if os(Linux) || os(Android)
2222
@preconcurrency import Dispatch
2323
#endif
2424

0 commit comments

Comments
 (0)