Avatar
Avatar
Yuta Saito
なんだろう。。最適化前後のバイナリもらえますか?
バイナリはこれですね.再現手順も Linux aarch64 環境でこれを実行するだけです. $ mkdir hoge; cd hoge/ $ docker container run -it --rm -v $PWD:/hoge swift:6.0.2-noble # apt update && apt install --no-install-recommends curl xz-utils binaryen wabt # curl https://wasmtime.dev/install.sh -sSf | bash # source ~/.bashrc # swift sdk install https://github.com/swiftwasm/swift/releases/download/swift-wasm-6.0.2-RELEASE/swift-wasm-6.0.2-RELEASE-wasm32-unknown-wasi.artifactbundle.zip --checksum 6ffedb055cb9956395d9f435d03d53ebe9f6a8d45106b979d1b7f53358e1dcb4 # cd /hoge # swift package init --type executable # swift build -c release --swift-sdk wasm32-unknown-wasi # wasm-opt -Oz -all .build/release/hoge.wasm -o hoge_optimized.wasm (edited)