summaryrefslogtreecommitdiff
path: root/examples/rust/build.sh
diff options
context:
space:
mode:
authorHenry Gressmann <mail@henrygressmann.de>2024-05-15 13:38:13 +0200
committerGitHub <noreply@github.com>2024-05-15 13:38:13 +0200
commitd9cdd0b53c870bf7d9d69b854b8da2692d152871 (patch)
tree0ba0bf6a38ce391495ef42e4f22954aafe3fbbc1 /examples/rust/build.sh
parente771c6df456f6c6655a7850defffdbb5cc574461 (diff)
feat: v0.7.0 (#13)
* Remove all unsafe code * Refactor interpreter loop * Optimize Call-frames * Remove unnecessary reference counter data from store --------- Signed-off-by: Henry Gressmann <mail@henrygressmann.de>
Diffstat (limited to 'examples/rust/build.sh')
-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 5028741..9c1f77d 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" -Oz --enable-bulk-memory --enable-reference-types --enable-mutable-globals
+ wasm-opt "$dest_dir/$bin.wasm" -o "$dest_dir/$bin.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"