Skip to content

fix: download wasm-opt on aarch64 Linux - #86

Merged
Arshia001 merged 1 commit into
mainfrom
fix/wasm-opt-aarch64-linux
Aug 6, 2026
Merged

fix: download wasm-opt on aarch64 Linux#86
Arshia001 merged 1 commit into
mainfrom
fix/wasm-opt-aarch64-linux

Conversation

@Arshia001

Copy link
Copy Markdown
Contributor

What

Add the linux + aarch64 arm to install_wasm_opt in src/lib.rs, mapping to binaryen's aarch64-linux asset.

Why

Follow-up to #85. With the host toolchain fixed, cargo wasix build gets all the way to post-processing on aarch64 Linux and then dies:

info: Post-processing WebAssembly files
  Optimizing with wasm-opt
error: failed to process wasm at `.../main.rustc.wasm`

Caused by:
    `wasm-opt` failed to execute

Caused by:
    no precompiled binaries of `wasm-opt` are available for this platform, you'll want to
    set `$WASM_OPT` to a preinstalled `wasm-opt` command or disable via `wasm-opt = false`
    in your manifest

install_wasm_opt mapped only x86_64-linux, x86_64-macos, arm64-macos and x86_64-windows, so aarch64 Linux hit the bail! arm. Binaryen has shipped binaryen-version_130-aarch64-linux.tar.gz all along — I confirmed the URL this arm constructs returns HTTP 200.

Without this, every Rust build on an aarch64 Linux host fails. It took out all 708 Rust test-fixture trials in wasmerio/wasmer#6698: https://github.com/wasmerio/wasmer/actions/runs/31015208374

Notes

As with #85, no version bump here — a crates.io release is needed before the wasix-org/cargo-wasix action picks it up.

🤖 Generated with Claude Code

install_wasm_opt only mapped four hosts, so aarch64 Linux fell through
to the bail arm and every cargo-wasix build died in post-processing:

    no precompiled binaries of `wasm-opt` are available for this
    platform, you'll want to set `$WASM_OPT` to a preinstalled
    `wasm-opt` command or disable via `wasm-opt = false` in your
    manifest

binaryen has published binaryen-version_130-aarch64-linux.tar.gz all
along, so this is just a missing arm.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@Arshia001
Arshia001 merged commit fd6e03e into main Aug 6, 2026
6 checks passed
@Arshia001
Arshia001 deleted the fix/wasm-opt-aarch64-linux branch August 6, 2026 06:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant