Skip to content

Commit 12193ce

Browse files
committed
binaryen-version_121.
1 parent 71d95bf commit 12193ce

File tree

8 files changed

+17
-12
lines changed

8 files changed

+17
-12
lines changed

.github/workflows/repro.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ set -euo pipefail
33

44
if [[ "$OSTYPE" == "linux"* ]]; then
55
WASI_SDK="https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-25/wasi-sdk-25.0-x86_64-linux.tar.gz"
6-
BINARYEN="https://github.com/WebAssembly/binaryen/releases/download/version_120_b/binaryen-version_120_b-x86_64-linux.tar.gz"
6+
BINARYEN="https://github.com/WebAssembly/binaryen/releases/download/version_121/binaryen-version_121-x86_64-linux.tar.gz"
77
elif [[ "$OSTYPE" == "darwin"* ]]; then
88
WASI_SDK="https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-25/wasi-sdk-25.0-arm64-macos.tar.gz"
9-
BINARYEN="https://github.com/WebAssembly/binaryen/releases/download/version_120_b/binaryen-version_120_b-arm64-macos.tar.gz"
9+
BINARYEN="https://github.com/WebAssembly/binaryen/releases/download/version_121/binaryen-version_121-arm64-macos.tar.gz"
1010
elif [[ "$OSTYPE" == "msys" || "$OSTYPE" == "cygwin" ]]; then
1111
WASI_SDK="https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-25/wasi-sdk-25.0-x86_64-windows.tar.gz"
12-
BINARYEN="https://github.com/WebAssembly/binaryen/releases/download/version_120_b/binaryen-version_120_b-x86_64-windows.tar.gz"
12+
BINARYEN="https://github.com/WebAssembly/binaryen/releases/download/version_121/binaryen-version_121-x86_64-windows.tar.gz"
1313
fi
1414

1515
# Download tools

embed/bcw2/bcw2.wasm

1.97 KB
Binary file not shown.

embed/bcw2/bcw2_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ func Test_bcw2(t *testing.T) {
3232
t.Fatal(err)
3333
}
3434

35+
_, err = tx.Exec(`DELETE FROM test LIMIT 1`)
36+
if err != nil {
37+
t.Fatal(err)
38+
}
39+
3540
err = tx.Commit()
3641
if err != nil {
3742
t.Fatal(err)

embed/bcw2/build.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,14 @@ mkdir -p build/ext/
1313
cp "$ROOT"/sqlite3/*.[ch] build/
1414
cp "$ROOT"/sqlite3/*.patch build/
1515

16-
# https://sqlite.org/src/info/08cfa7e8b3090151
17-
curl -# https://sqlite.org/src/tarball/sqlite.tar.gz?r=08cfa7e8 | tar xz
16+
# https://sqlite.org/src/info/ec5d7025cba9f4ac
17+
curl -# https://sqlite.org/src/tarball/sqlite.tar.gz?r=ec5d7025 | tar xz
1818

1919
cd sqlite
2020
if [[ "$OSTYPE" == "msys" || "$OSTYPE" == "cygwin" ]]; then
21-
MSYS_NO_PATHCONV=1 nmake /f makefile.msc sqlite3.c
21+
MSYS_NO_PATHCONV=1 nmake /f makefile.msc sqlite3.c OPTS=-DSQLITE_ENABLE_UPDATE_DELETE_LIMIT
2222
else
23-
sh configure
24-
make sqlite3.c
23+
sh configure --enable-update-limit && make sqlite3.c
2524
fi
2625
cd ~-
2726

@@ -54,6 +53,7 @@ cd ~-
5453
-Wl,--import-undefined \
5554
-Wl,--initial-memory=327680 \
5655
-D_HAVE_SQLITE_CONFIG_H \
56+
-DSQLITE_ENABLE_UPDATE_DELETE_LIMIT \
5757
-DSQLITE_CUSTOM_INCLUDE=sqlite_opt.h \
5858
$(awk '{print "-Wl,--export="$0}' ../exports.txt)
5959

embed/sqlite3.wasm

-486 Bytes
Binary file not shown.
11 Bytes
Binary file not shown.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:32dfb1b76b5cf71cb7610a7cb34ec3d9b68fcea5e54d734e35ae6b649c923c7a
3-
size 477479
2+
oid sha256:e20f37d94223a88d8f94b3a20177c0fbf53392df2f9c59a28cc7f1f2b5d3de81
3+
size 477370
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:a0d0b42fe3120de55da71dae0b2aa6ae5b4888593d2129e651590f12555ecdf3
3-
size 491151
2+
oid sha256:eebe395695c739a24e9cded13553b97d232eb268a5bc36f10f27cc13945e78cd
3+
size 491003

0 commit comments

Comments
 (0)