We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68ef459 commit f5206eaCopy full SHA for f5206ea
sqlite3/libc/build.sh
@@ -11,6 +11,7 @@ SRCS="${1:-libc.c}"
11
12
trap 'rm -f libc.c libc.tmp' EXIT
13
echo '#include <string.h>' > libc.c
14
+echo '#include <stdlib.h>' >> libc.c
15
16
"$WASI_SDK/clang" --target=wasm32-wasi -std=c23 -g0 -O2 \
17
-o libc.wasm -I. "$SRCS" \
@@ -32,7 +33,8 @@ echo '#include <string.h>' > libc.c
32
33
-Wl,--export=strcspn \
34
-Wl,--export=strlen \
35
-Wl,--export=strncmp \
- -Wl,--export=strspn
36
+ -Wl,--export=strspn \
37
+ -Wl,--export=qsort
38
39
"$BINARYEN/wasm-ctor-eval" -g -c _initialize libc.wasm -o libc.tmp
40
"$BINARYEN/wasm-opt" -g --strip --strip-producers -c -O3 \
sqlite3/libc/libc.wasm
568 Bytes
0 commit comments