Skip to content

Commit fc5ced2

Browse files
committed
Fix bcmp.
1 parent c1bed07 commit fc5ced2

File tree

11 files changed

+205
-211
lines changed

11 files changed

+205
-211
lines changed

embed/bcw2/build.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ cd ~-
4646
-o bcw2.wasm build/main.c \
4747
-I"$ROOT/sqlite3/libc" -I"build" \
4848
-mexec-model=reactor \
49-
-msimd128 -mmutable-globals -mmultivalue \
50-
-mbulk-memory -mreference-types \
51-
-mnontrapping-fptoint -msign-ext \
49+
-mmutable-globals -mnontrapping-fptoint \
50+
-msimd128 -mbulk-memory -msign-ext \
51+
-mreference-types -mmultivalue \
5252
-fno-stack-protector -fno-stack-clash-protection \
5353
-Wl,--stack-first \
5454
-Wl,--import-undefined \
@@ -61,6 +61,6 @@ cd ~-
6161
"$BINARYEN/wasm-ctor-eval" -g -c _initialize bcw2.wasm -o bcw2.tmp
6262
"$BINARYEN/wasm-opt" -g --strip --strip-producers -c -O3 \
6363
bcw2.tmp -o bcw2.wasm --low-memory-unused \
64-
--enable-simd --enable-mutable-globals --enable-multivalue \
65-
--enable-bulk-memory --enable-reference-types \
66-
--enable-nontrapping-float-to-int --enable-sign-ext
64+
--enable-mutable-globals --enable-nontrapping-float-to-int \
65+
--enable-simd --enable-bulk-memory --enable-sign-ext \
66+
--enable-reference-types --enable-multivalue

embed/build.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ trap 'rm -f sqlite3.tmp' EXIT
1414
-o sqlite3.wasm "$ROOT/sqlite3/main.c" \
1515
-I"$ROOT/sqlite3/libc" -I"$ROOT/sqlite3" \
1616
-mexec-model=reactor \
17-
-msimd128 -mmutable-globals -mmultivalue \
18-
-mbulk-memory -mreference-types \
19-
-mnontrapping-fptoint -msign-ext \
17+
-mmutable-globals -mnontrapping-fptoint \
18+
-msimd128 -mbulk-memory -msign-ext \
19+
-mreference-types -mmultivalue \
2020
-fno-stack-protector -fno-stack-clash-protection \
2121
-Wl,--stack-first \
2222
-Wl,--import-undefined \
@@ -28,6 +28,6 @@ trap 'rm -f sqlite3.tmp' EXIT
2828
"$BINARYEN/wasm-ctor-eval" -g -c _initialize sqlite3.wasm -o sqlite3.tmp
2929
"$BINARYEN/wasm-opt" -g --strip --strip-producers -c -O3 \
3030
sqlite3.tmp -o sqlite3.wasm --low-memory-unused \
31-
--enable-simd --enable-mutable-globals --enable-multivalue \
32-
--enable-bulk-memory --enable-reference-types \
33-
--enable-nontrapping-float-to-int --enable-sign-ext
31+
--enable-mutable-globals --enable-nontrapping-float-to-int \
32+
--enable-simd --enable-bulk-memory --enable-sign-ext \
33+
--enable-reference-types --enable-multivalue

sqlite3/libc/build.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ EOF
1919
-Wall -Wextra -Wno-unused-parameter -Wno-unused-function \
2020
-o libc.wasm -I. "$SRCS" \
2121
-mexec-model=reactor \
22-
-msimd128 -mmutable-globals -mmultivalue \
23-
-mbulk-memory -mreference-types \
24-
-mnontrapping-fptoint -msign-ext \
22+
-mmutable-globals -mnontrapping-fptoint \
23+
-msimd128 -mbulk-memory -msign-ext \
24+
-mreference-types -mmultivalue \
2525
-fno-stack-protector -fno-stack-clash-protection \
2626
-Wl,-z,stack-size=4096 \
2727
-Wl,--stack-first \
@@ -54,8 +54,8 @@ EOF
5454
"$BINARYEN/wasm-ctor-eval" -g -c _initialize libc.wasm -o libc.tmp
5555
"$BINARYEN/wasm-opt" -g --strip --strip-producers -c -O3 \
5656
libc.tmp -o libc.wasm \
57-
--enable-simd --enable-mutable-globals --enable-multivalue \
58-
--enable-bulk-memory --enable-reference-types \
59-
--enable-nontrapping-float-to-int --enable-sign-ext
57+
--enable-mutable-globals --enable-nontrapping-float-to-int \
58+
--enable-simd --enable-bulk-memory --enable-sign-ext \
59+
--enable-reference-types --enable-multivalue
6060

6161
"$BINARYEN/wasm-dis" -o libc.wat libc.wasm

sqlite3/libc/libc.wasm

-9 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)