File tree 2 files changed +7
-1
lines changed
stdlib/public/Synchronization
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ set(SWIFT_SYNCHRONIZATION_DARWIN_SOURCES
40
40
Mutex/DarwinImpl.swift
41
41
)
42
42
43
- # Linux sources
43
+ # Linux and Android sources
44
44
45
45
set (SWIFT_SYNCHRONIZATION_LINUX_SOURCES
46
46
Mutex/LinuxImpl.swift
@@ -102,6 +102,8 @@ add_swift_target_library(swiftSynchronization ${SWIFT_STDLIB_LIBRARY_BUILD_TYPES
102
102
Darwin
103
103
SWIFT_MODULE_DEPENDS_LINUX
104
104
Glibc
105
+ SWIFT_MODULE_DEPENDS_ANDROID
106
+ Android
105
107
SWIFT_MODULE_DEPENDS_WINDOWS
106
108
WinSDK
107
109
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