wasm: update wasm build script

Fixed typo. It breaks build progress now.
This commit is contained in:
Jinny You 2024-10-11 15:21:52 +09:00 committed by Hermet Park
parent d4f8a885b7
commit cd10f4ee23

View file

@ -10,7 +10,7 @@ if [ -z "$2" ]; then
EMSDK="$1" EMSDK="$1"
fi fi
if [ ! -d "./build_wasm32_$BACKEND" ]; then if [ ! -d "./build_wasm" ]; then
if [[ "$BACKEND" == "wg" ]]; then if [[ "$BACKEND" == "wg" ]]; then
sed "s|EMSDK:|$EMSDK|g" ./cross/wasm32_wg.txt > /tmp/.wasm_cross.txt sed "s|EMSDK:|$EMSDK|g" ./cross/wasm32_wg.txt > /tmp/.wasm_cross.txt
meson -Db_lto=true -Ddefault_library=static -Dstatic=true -Dloaders="all" -Dsavers="all" -Dthreads=false -Dbindings="wasm_beta" -Dengines="wg" --cross-file /tmp/.wasm_cross.txt build_wasm meson -Db_lto=true -Ddefault_library=static -Dstatic=true -Dloaders="all" -Dsavers="all" -Dthreads=false -Dbindings="wasm_beta" -Dengines="wg" --cross-file /tmp/.wasm_cross.txt build_wasm