Skip to content

Commit

Permalink
Merge pull request #1393 from dkristia/master
Browse files Browse the repository at this point in the history
Implement wasm-opt linux aarch64 condition
  • Loading branch information
drager authored Jul 1, 2024
2 parents abe080f + e4d5466 commit a14c9f6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/install/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,8 @@ fn prebuilt_url(tool: &Tool, version: &str) -> Result<String> {
/// Get the download URL for some tool at some version, architecture and operating system
pub fn prebuilt_url_for(tool: &Tool, version: &str, arch: &Arch, os: &Os) -> Result<String> {
let target = match (os, arch, tool) {
(Os::Linux, Arch::AArch64, Tool::WasmOpt) => "aarch64-linux",
(Os::Linux, Arch::AArch64, _) => "aarch64-unknown-linux-gnu",
(Os::Linux, Arch::X86_64, Tool::WasmOpt) => "x86_64-linux",
(Os::Linux, Arch::X86_64, _) => "x86_64-unknown-linux-musl",
(Os::MacOS, Arch::X86_64, Tool::WasmOpt) => "x86_64-macos",
Expand Down Expand Up @@ -201,7 +203,7 @@ pub fn prebuilt_url_for(tool: &Tool, version: &str, arch: &Arch, os: &Os) -> Res
Tool::WasmOpt => {
Ok(format!(
"https://github.com/WebAssembly/binaryen/releases/download/{vers}/binaryen-{vers}-{target}.tar.gz",
vers = "version_111",
vers = "version_117",
target = target,
))
}
Expand Down

0 comments on commit a14c9f6

Please sign in to comment.