Make libc easier to use.

This commit is contained in:
Nuno Cruces
2025-04-17 13:55:44 +01:00
parent 79bf171210
commit 68ef4593d6
12 changed files with 232 additions and 80 deletions

View File

@@ -12,7 +12,7 @@ trap 'rm -f sql3parse_table.tmp' EXIT
"$WASI_SDK/clang" --target=wasm32-wasi -std=c23 -g0 -Oz \
-Wall -Wextra -Wno-unused-parameter -Wno-unused-function \
-o sql3parse_table.wasm main.c \
-I"$ROOT/sqlite3" \
-I"$ROOT/sqlite3/libc" -I"$ROOT/sqlite3" \
-mexec-model=reactor \
-msimd128 -mmutable-globals -mmultivalue \
-mbulk-memory -mreference-types \

View File

@@ -1,6 +1,5 @@
#include <stddef.h>
#include "strings.c"
#include "sql3parse_table.c"
static_assert(offsetof(sql3table, name) == 0, "Unexpected offset");