diff options
| author | Henry Gressmann <mail@henrygressmann.de> | 2024-05-09 22:36:14 +0200 |
|---|---|---|
| committer | Henry Gressmann <mail@henrygressmann.de> | 2024-05-09 22:36:14 +0200 |
| commit | 53bb44f45cfda750250e0835425307e3a1d763bc (patch) | |
| tree | 4085c249714d76b82157c7a888baa2151fe8f190 /examples/rust/build.sh | |
| parent | 11271a201633d3b07adacd07e407ac8d07e5fce3 (diff) | |
feat: implement I32StoreLocal & I32LocalGetConstAdd
Signed-off-by: Henry Gressmann <mail@henrygressmann.de>
Diffstat (limited to 'examples/rust/build.sh')
| -rwxr-xr-x | examples/rust/build.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/rust/build.sh b/examples/rust/build.sh index 744f9d0..5028741 100755 --- a/examples/rust/build.sh +++ b/examples/rust/build.sh @@ -6,7 +6,7 @@ exclude_wat=("tinywasm") out_dir="./target/wasm32-unknown-unknown/wasm" dest_dir="out" -features="+reference-types,+bulk-memory,+mutable-globals,+multivalue" +features="+reference-types,+bulk-memory,+mutable-globals" # ensure out dir exists mkdir -p "$dest_dir" @@ -15,7 +15,7 @@ for bin in "${bins[@]}"; do RUSTFLAGS="-C target-feature=$features -C panic=abort" cargo build --target wasm32-unknown-unknown --package rust-wasm-examples --profile=wasm --bin "$bin" cp "$out_dir/$bin.wasm" "$dest_dir/" - wasm-opt "$dest_dir/$bin.wasm" -o "$dest_dir/$bin.wasm" -Oz --enable-bulk-memory --enable-multivalue --enable-reference-types --enable-mutable-globals + wasm-opt "$dest_dir/$bin.wasm" -o "$dest_dir/$bin.wasm" -Oz --enable-bulk-memory --enable-reference-types --enable-mutable-globals if [[ ! " ${exclude_wat[@]} " =~ " $bin " ]]; then wasm2wat "$dest_dir/$bin.wasm" -o "$dest_dir/$bin.wat" |
