Skip to content

Commit 4ed0e19

Browse files
committed
Use wasm32-wasi for static lib.
1 parent b0c82ba commit 4ed0e19

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tool/build_wasm.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,13 @@ RUSTFLAGS="-C link-arg=-sSIDE_MODULE=2 -C link-arg=-sASYNCIFY=1 -C link-arg=-sJS
2424
-Z build-std=panic_abort,core,alloc \
2525
--target wasm32-unknown-emscripten
2626

27-
# Static lib (works for both sync and asyncify builds)
28-
# target/wasm32-unknown-emscripten/wasm/libpowersync.a
27+
28+
# Static lib.
29+
# Works for both sync and asyncify builds.
30+
# Works for both emscripten and wasi.
31+
# target/wasm32-wasi/wasm/libpowersync.a
2932
cargo build \
3033
-p powersync_static \
3134
--profile wasm \
3235
-Z build-std=panic_abort,core,alloc \
33-
--target wasm32-unknown-emscripten
36+
--target wasm32-wasi

0 commit comments

Comments
 (0)