Merge pull request #1393 from dkristia/master

Implement wasm-opt linux aarch64 condition
master
Jesper Håkansson 10 months ago committed by GitHub
commit a14c9f62a2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      src/install/mod.rs

@ -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 /// 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> { pub fn prebuilt_url_for(tool: &Tool, version: &str, arch: &Arch, os: &Os) -> Result<String> {
let target = match (os, arch, tool) { 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, Tool::WasmOpt) => "x86_64-linux",
(Os::Linux, Arch::X86_64, _) => "x86_64-unknown-linux-musl", (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, Tool::WasmOpt) => "x86_64-macos",
@ -201,7 +203,7 @@ pub fn prebuilt_url_for(tool: &Tool, version: &str, arch: &Arch, os: &Os) -> Res
Tool::WasmOpt => { Tool::WasmOpt => {
Ok(format!( Ok(format!(
"https://github.com/WebAssembly/binaryen/releases/download/{vers}/binaryen-{vers}-{target}.tar.gz", "https://github.com/WebAssembly/binaryen/releases/download/{vers}/binaryen-{vers}-{target}.tar.gz",
vers = "version_111", vers = "version_117",
target = target, target = target,
)) ))
} }

Loading…
Cancel
Save