summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorHenry Gressmann <mail@henrygressmann.de>2024-05-30 01:16:56 +0200
committerHenry Gressmann <mail@henrygressmann.de>2024-05-30 01:16:56 +0200
commit7c3fd68f703d944b05dcea08f3a46c59b41503f4 (patch)
tree4588645c28ea9775ae39f4875b019f72269dbb6f /examples
parentffb1e095fc1d6a2d54cc7637797c625dee6ebe6a (diff)
chore: cleanup
Signed-off-by: Henry Gressmann <mail@henrygressmann.de>
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/rust/build.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/rust/build.sh b/examples/rust/build.sh
index 9c1f77d..fcfd01c 100755
--- a/examples/rust/build.sh
+++ b/examples/rust/build.sh
@@ -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" -O3 --enable-bulk-memory --enable-reference-types --enable-mutable-globals
+ wasm-opt "$dest_dir/$bin.wasm" -o "$dest_dir/$bin.opt.wasm" -O3 --enable-bulk-memory --enable-reference-types --enable-mutable-globals
if [[ ! " ${exclude_wat[@]} " =~ " $bin " ]]; then
wasm2wat "$dest_dir/$bin.wasm" -o "$dest_dir/$bin.wat"