Build scripts.

This commit is contained in:
Nuno Cruces
2023-05-12 12:11:14 +01:00
parent be4b6304f9
commit 03168d5d34
7 changed files with 10 additions and 7 deletions

View File

@@ -15,7 +15,6 @@ WASI_SDK="$ROOT/tools/wasi-sdk-20.0/bin"
-mnontrapping-fptoint -msign-ext \
-Wl,--stack-first \
-Wl,--import-undefined \
-D_HAVE_SQLITE_CONFIG_H \
-DSQLITE_DEFAULT_SYNCHRONOUS=0 \
-DSQLITE_DEFAULT_LOCKING_MODE=0 \
-DHAVE_USLEEP -DSQLITE_NO_SYNC \

View File

@@ -1,6 +1,8 @@
#include <stdbool.h>
#include <stddef.h>
#include "sqlite_cfg.h"
//
#include "sqlite3.c"
//
#include "os.c"

View File

@@ -14,8 +14,7 @@ WASI_SDK="$ROOT/tools/wasi-sdk-20.0/bin"
-mbulk-memory -mreference-types \
-mnontrapping-fptoint -msign-ext \
-Wl,--stack-first \
-Wl,--import-undefined \
-D_HAVE_SQLITE_CONFIG_H
-Wl,--import-undefined
"$BINARYEN/wasm-opt" -g -O2 speedtest1.wasm -o speedtest1.tmp \
--enable-multivalue --enable-mutable-globals \

View File

@@ -1,6 +1,8 @@
#include <stdbool.h>
#include <stddef.h>
#include "sqlite_cfg.h"
//
#include "sqlite3.c"
//
#include "os.c"