tursodatabase / libsql

libSQL is a fork of SQLite that is both Open Source, and Open Contributions.
https://turso.tech/libsql
MIT License
9.34k stars 243 forks source link

Simplify sqlite3mc build #1028

Open penberg opened 6 months ago

penberg commented 6 months ago

We currently build sqlite3mc by invoking its cmake-based build, which makes the build more complicated, especially when cross-compiling. Let's look into switching to using the cc crate from libsql-ffi/build.rs instead to simplify the build.

levydsa commented 2 months ago

I'm looking into this. I think the best approach is to ditch the whole amalgamation thing and merge both sqlite3 and sqlite3mc in the same repo, then toggle the later with a flag as needed (I think there already is one, not sure). I'm currently exploring the use of Zig's build system, but adding this as a dependency might be undesirable.

1039 is somewhat related