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 @@ -40,7 +40,7 @@ set(SWIFT_SYNCHRONIZATION_DARWIN_SOURCES
4040 Mutex/DarwinImpl.swift
4141)
4242
43- # Linux sources
43+ # Linux and Android sources
4444
4545set (SWIFT_SYNCHRONIZATION_LINUX_SOURCES
4646 Mutex/LinuxImpl.swift
@@ -102,6 +102,8 @@ add_swift_target_library(swiftSynchronization ${SWIFT_STDLIB_LIBRARY_BUILD_TYPES
102102 Darwin
103103 SWIFT_MODULE_DEPENDS_LINUX
104104 Glibc
105+ SWIFT_MODULE_DEPENDS_ANDROID
106+ Android
105107 SWIFT_MODULE_DEPENDS_WINDOWS
106108 WinSDK
107109
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