Skip to content

Commit dc8cb70

Browse files
vkuttypCopilot
andcommitted
fix: use relative sqlite3.h in CSQLite module.modulemap for Android cross-compilation
The absolute path '/usr/include/sqlite3.h' does not exist in the Android NDK sysroot used by the aarch64-unknown-linux-android24 Swift SDK. Using a relative 'sqlite3.h' lets the compiler find it through the sysroot include paths automatically during cross-compilation, while still working on Linux native builds via pkg-config include flags. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 32aafcd commit dc8cb70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/CSQLite/module.modulemap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module CSQLite [system] {
2-
header "/usr/include/sqlite3.h"
2+
header "sqlite3.h"
33
link "sqlite3"
44
export *
55
}

0 commit comments

Comments
 (0)