Use the new Android overlay and Bionic module from Swift 6 (#2784)

Motivation:

Get this repo building again for Android with the new overlay

Modifications:

- Import the new module or overlay wherever `Glibc` is used
- Keep this repo building with Swift 5 by duplicating some declarations

Result:

All the same tests keep passing on my Android CI, finagolfin/swift-android-sdk#158
This commit is contained in:
finagolfin authored and GitHub committed 2024-07-22 09:58:09 +00:00
1 parent 284125791a
commit 4feff3c2f6
33 files changed
+164 -43

No files matched your search

+3 -1
View File
@@ -25,6 +25,8 @@ import Darwin
import Glibc
#elseif canImport(Musl)
import Musl
#elseif canImport(Bionic)
import Bionic
#endif
/// A file system which interacts with the local system. The file system uses a thread pool to
@@ -1086,7 +1088,7 @@ extension FileSystem {
location: .here()
)
}
#elseif canImport(Glibc) || canImport(Musl)
#elseif canImport(Glibc) || canImport(Musl) || canImport(Bionic)
var offset = 0
while offset < sourceInfo.size {