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
46
46
Mutex/Mutex.swift
47
47
)
48
48
49
- # Linux sources
49
+ # Linux and Android sources
50
50
51
51
set (SWIFT_SYNCHRONIZATION_LINUX_SOURCES
52
52
Mutex/LinuxImpl.swift
@@ -115,6 +115,8 @@ add_swift_target_library(swiftSynchronization ${SWIFT_STDLIB_LIBRARY_BUILD_TYPES
115
115
${SWIFT_SYNCHRONIZATION_DARWIN_DEPENDENCIES}
116
116
SWIFT_MODULE_DEPENDS_LINUX
117
117
Glibc
118
+ SWIFT_MODULE_DEPENDS_ANDROID
119
+ Android
118
120
SWIFT_MODULE_DEPENDS_WINDOWS
119
121
WinSDK
120
122
Original file line number Diff line number Diff line change 11
11
//===----------------------------------------------------------------------===//
12
12
13
13
import _SynchronizationShims
14
+ #if canImport(Android)
15
+ import Android
16
+ #else
14
17
import Glibc
18
+ #endif
15
19
16
20
extension Atomic where Value == UInt32 {
17
21
// 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