Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@

[pull/1585]: https://github.com/wasm-bindgen/wasm-pack/pull/1585

- **Download prebuilt wasm-opt binary on Windows aarch64/arm64 - [pull/1605]**

wasm-pack now downloads prebuilt `wasm-opt` binaries for Windows on AARCH64/ARM64
(`arm64-windows`) from Binaryen releases instead of failing with an
unrecognized target error.

[pull/1605]: https://github.com/wasm-bindgen/wasm-pack/pull/1605

## 🌷 0.15.0

- ### ✨ Features
Expand Down
1 change: 1 addition & 0 deletions src/install/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ pub fn prebuilt_url_for(tool: &Tool, version: &str, arch: &Arch, os: &Os) -> Res
(Os::MacOS, Arch::AArch64, _) => "aarch64-apple-darwin",
(Os::Windows, Arch::X86_64, Tool::WasmOpt) => "x86_64-windows",
(Os::Windows, Arch::X86_64, _) => "x86_64-pc-windows-msvc",
(Os::Windows, Arch::AArch64, Tool::WasmOpt) => "arm64-windows",
_ => bail!("Unrecognized target!"),
};
match tool {
Expand Down
1 change: 1 addition & 0 deletions tests/all/download.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ fn can_download_prebuilt_cargo_generate() {
all(target_os = "macos", target_arch = "x86_64"),
all(target_os = "macos", target_arch = "aarch64"),
all(windows, target_arch = "x86_64"),
all(windows, target_arch = "aarch64"),
))]
fn can_download_prebuilt_wasm_opt() {
let dir = tempfile::TempDir::new().unwrap();
Expand Down
Loading