Skip to content

Commit e17a432

Browse files
authored
Adds strstr and memmem. (#275)
1 parent c780ef1 commit e17a432

File tree

6 files changed

+1449
-39
lines changed

6 files changed

+1449
-39
lines changed

sqlite3/libc/build.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,15 @@ EOF
2323
-mbulk-memory -mreference-types \
2424
-mnontrapping-fptoint -msign-ext \
2525
-fno-stack-protector -fno-stack-clash-protection \
26-
-Wl,-z,stack-size=1024 \
26+
-Wl,-z,stack-size=4096 \
2727
-Wl,--stack-first \
2828
-Wl,--import-undefined \
2929
-Wl,--initial-memory=16777216 \
3030
-Wl,--export=memccpy \
3131
-Wl,--export=memchr \
3232
-Wl,--export=memcmp \
3333
-Wl,--export=memcpy \
34+
-Wl,--export=memmem \
3435
-Wl,--export=memmove \
3536
-Wl,--export=memrchr \
3637
-Wl,--export=memset \
@@ -47,6 +48,7 @@ EOF
4748
-Wl,--export=strncpy \
4849
-Wl,--export=strrchr \
4950
-Wl,--export=strspn \
51+
-Wl,--export=strstr \
5052
-Wl,--export=qsort
5153

5254
"$BINARYEN/wasm-ctor-eval" -g -c _initialize libc.wasm -o libc.tmp

sqlite3/libc/libc.wasm

1.73 KB
Binary file not shown.

0 commit comments

Comments
 (0)