Skip to content

fix(install): download prebuilt wasm-opt binary on Windows arm64 - #1605

Open
gSys1337 wants to merge 2 commits into
wasm-bindgen:masterfrom
gSys1337:fix/windows-arm64-wasm-opt
Open

gSys1337 wants to merge 2 commits into
wasm-bindgen:masterfrom
gSys1337:fix/windows-arm64-wasm-opt

Conversation

@gSys1337

@gSys1337 gSys1337 commented Sep 22, 2026 •

Copy link
Copy Markdown

Make sure these boxes are checked! 📦✅

  • You have the latest version of rustfmt installed
> rustfmt --version
rustfmt 1.9.0-stable (48a229ceae 2026-09-01)
  • You ran cargo fmt on the code base before submitting
  • You reference which issue is being closed in the PR text

Description

Binaryen provides prebuilt arm64-windows release archives (e.g. binaryen-version_130-arm64-windows.tar.gz). Previously, running wasm-pack on Windows on ARM64 failed with Unrecognized target! when attempting to download wasm-opt.
This PR adds the (Os::Windows, Arch::AArch64, Tool::WasmOpt) => "arm64-windows" mapping to prebuilt_url_for, allowing wasm-pack to automatically download and extract native wasm-opt binaries on Windows ARM64 platforms.
Relates to #1554 & #1604.

✨✨ 😄 Thanks so much for contributing to wasm-pack! 😄 ✨✨

Copilot AI lite review requested due to automatic review settings September 22, 2026 13:13

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

Replace the changelog’s placeholder pull/0000 reference before merging.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 1 Low severity

Open (1)
What changed in this PR

Adds native Windows ARM64 support for downloading prebuilt wasm-opt binaries.

Changes:

  • Maps Windows AArch64 to Binaryen’s arm64-windows archive.
  • Enables the Windows ARM64 download test.
  • Documents the fix in the changelog.
File Description
tests/​all/​download.rs Tests wasm-opt downloads on Windows ARM64.
src/​install/​mod.rs Adds the Windows ARM64 target mapping.
CHANGELOG.md Records the new platform support.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread CHANGELOG.md Outdated

This branch has not been deployed

No deployments
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.

2 participants