4 ms·
It can be compiled to WASI but there are no instructions on how to use zig cc to do it?
by jedisct1 4y ago
It can be compiled to WASI but there are no instructions on how to use zig cc to do it?
- williamstein 4y agoFor what it is worth, I also care about building this with zig. https://github.com/sagemathinc/cowasm/blob/main/packages/sqlite https://github.com/sagemathinc/cowasm/blob/main/packages/sql...
- sgbeal 4y ago> It can be compiled to WASI but there are no instructions on how to use zig cc to do it? We (sqlite team) are currently working on patches to get it building properly with wasi-sdk. When built as-is with wasi it's essentially non-functional due to missing POSIX I/O emulation bits. i think we can expect to see that build land by the 3.41 release.
- rcarmo 4y agoI hacked a bit of that in here: https://github.com/rcarmo/wasi-sqlite https://github.com/rcarmo/wasi-sqlite Right now I can run SQLite on my iPad under a-Shell pretty well, but there seems to be a bug in the REPL (not sure where) and memory usage skyrockets. Would love to see this working in a CLI environment.