Skip to content

Commit 11970d7

Browse files
finagolfindmbryson
authored andcommitted
Link SQLite3 on Android and switch one import back to the Android overlay
1 parent c44abe8 commit 11970d7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ let package = Package(
8787
],
8888
path: "lib/Core",
8989
linkerSettings: [
90-
.linkedLibrary("sqlite3", .when(platforms: [.macOS, .iOS, .tvOS, .watchOS, .visionOS, .macCatalyst, .linux]))
90+
.linkedLibrary("sqlite3", .when(platforms: [.macOS, .iOS, .tvOS, .watchOS, .visionOS, .macCatalyst, .linux, .android]))
9191
]
9292
),
9393
.target(

products/llbuildSwift/BuildSystemBindings.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ import WinSDK
1717
import Glibc
1818
#elseif canImport(Musl)
1919
import Musl
20-
#elseif canImport(Bionic)
21-
import Bionic
20+
#elseif canImport(Android)
21+
import Android
2222
#else
2323
#error("Missing libc or equivalent")
2424
#endif
@@ -1293,7 +1293,7 @@ public final class BuildSystem {
12931293
#elseif os(Windows)
12941294
info.pointee.mod_time.seconds = UInt64(s.st_mtime)
12951295
info.pointee.mod_time.nanoseconds = 0
1296-
#elseif canImport(Glibc) || canImport(Musl) || canImport(Bionic)
1296+
#elseif canImport(Glibc) || canImport(Musl) || canImport(Android)
12971297
info.pointee.mod_time.seconds = UInt64(s.st_mtim.tv_sec)
12981298
info.pointee.mod_time.nanoseconds = UInt64(s.st_mtim.tv_nsec)
12991299
#else

0 commit comments

Comments
 (0)