Skip to content

Commit f5206ea

Browse files
committed
Shellsort.
1 parent 68ef459 commit f5206ea

File tree

4 files changed

+509
-3
lines changed

4 files changed

+509
-3
lines changed

sqlite3/libc/build.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ SRCS="${1:-libc.c}"
1111

1212
trap 'rm -f libc.c libc.tmp' EXIT
1313
echo '#include <string.h>' > libc.c
14+
echo '#include <stdlib.h>' >> libc.c
1415

1516
"$WASI_SDK/clang" --target=wasm32-wasi -std=c23 -g0 -O2 \
1617
-o libc.wasm -I. "$SRCS" \
@@ -32,7 +33,8 @@ echo '#include <string.h>' > libc.c
3233
-Wl,--export=strcspn \
3334
-Wl,--export=strlen \
3435
-Wl,--export=strncmp \
35-
-Wl,--export=strspn
36+
-Wl,--export=strspn \
37+
-Wl,--export=qsort
3638

3739
"$BINARYEN/wasm-ctor-eval" -g -c _initialize libc.wasm -o libc.tmp
3840
"$BINARYEN/wasm-opt" -g --strip --strip-producers -c -O3 \

sqlite3/libc/libc.wasm

568 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)