Skip to content

Commit 6801a49

Browse files
committed
Fix building WASI
1 parent 12680b9 commit 6801a49

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tool/build_wasm.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ cp "target/wasm32-unknown-emscripten/wasm_asyncify/powersync.wasm" "libpowersync
3131
# Static lib.
3232
# Works for both sync and asyncify builds.
3333
# Works for both emscripten and wasi.
34-
# target/wasm32-wasi/wasm/libpowersync.a
34+
# target/wasm32-wasip1/wasm/libpowersync.a
3535
cargo build \
3636
-p powersync_loadable \
3737
--profile wasm \
3838
--no-default-features \
3939
--features "powersync_core/static powersync_core/omit_load_extension sqlite_nostd/omit_load_extension" \
4040
-Z build-std=panic_abort,core,alloc \
41-
--target wasm32-wasi
41+
--target wasm32-wasip1
4242

43-
cp "target/wasm32-wasi/wasm/libpowersync.a" "libpowersync-wasm.a"
43+
cp "target/wasm32-wasip1/wasm/libpowersync.a" "libpowersync-wasm.a"

0 commit comments

Comments
 (0)