File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
stdlib/public/Synchronization Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ set(SWIFT_SYNCHRONIZATION_DARWIN_SOURCES
4646 Mutex/Mutex.swift
4747)
4848
49- # Linux sources
49+ # Linux and Android sources
5050
5151set (SWIFT_SYNCHRONIZATION_LINUX_SOURCES
5252 Mutex/LinuxImpl.swift
@@ -115,6 +115,8 @@ add_swift_target_library(swiftSynchronization ${SWIFT_STDLIB_LIBRARY_BUILD_TYPES
115115 ${SWIFT_SYNCHRONIZATION_DARWIN_DEPENDENCIES}
116116 SWIFT_MODULE_DEPENDS_LINUX
117117 Glibc
118+ SWIFT_MODULE_DEPENDS_ANDROID
119+ Android
118120 SWIFT_MODULE_DEPENDS_WINDOWS
119121 WinSDK
120122
Original file line number Diff line number Diff line change 1111//===----------------------------------------------------------------------===//
1212
1313import _SynchronizationShims
14+ #if canImport(Android)
15+ import Android
16+ #else
1417import Glibc
18+ #endif
1519
1620extension Atomic where Value == UInt32 {
1721 // This returns 'false' on success and 'true' on error. Check 'errno' for the
You can’t perform that action at this time.
0 commit comments