Skip to content
Merged
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
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

## 🤍 Unreleased

- ### 🤕 Fixes

- **Use prebuilt wasm-bindgen binary on macOS aarch64 - [guybedford], [pull/1585]**

Previously wasm-pack built `wasm-bindgen-cli` from source on Apple Silicon. The
prebuilt `aarch64-apple-darwin` release is now used directly.

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

## 🌷 0.15.0

- ### ✨ Features
Expand Down
2 changes: 1 addition & 1 deletion src/install/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ pub fn prebuilt_url_for(tool: &Tool, version: &str, arch: &Arch, os: &Os) -> Res
(Os::Linux, Arch::X86_64, _) => "x86_64-unknown-linux-musl",
(Os::MacOS, Arch::X86_64, Tool::WasmOpt) => "x86_64-macos",
(Os::MacOS, Arch::X86_64, _) => "x86_64-apple-darwin",
(Os::MacOS, Arch::AArch64, Tool::CargoGenerate) => "aarch64-apple-darwin",
(Os::MacOS, Arch::AArch64, Tool::WasmOpt) => "arm64-macos",
(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",
_ => bail!("Unrecognized target!"),
Expand Down
1 change: 1 addition & 0 deletions tests/all/download.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ use wasm_pack::install::{self, Arch, Os, Tool};
#[cfg(any(
all(target_os = "linux", target_arch = "x86_64"),
all(target_os = "macos", target_arch = "x86_64"),
all(target_os = "macos", target_arch = "aarch64"),
all(windows, target_arch = "x86_64"),
))]
fn can_download_prebuilt_wasm_bindgen() {
Expand Down
Loading