From fde85de5a6b8df4b773951e37c5729bd1a7dc400 Mon Sep 17 00:00:00 2001 From: Daniel Iisak Mikael Kristiansson <145011902+dkristia@users.noreply.github.com> Date: Wed, 22 May 2024 13:38:05 +0300 Subject: [PATCH 1/3] add linux aarch64 to targets; bump binaryen vers. --- src/install/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/install/mod.rs b/src/install/mod.rs index 747a1691..926ec16d 100644 --- a/src/install/mod.rs +++ b/src/install/mod.rs @@ -173,6 +173,7 @@ fn prebuilt_url(tool: &Tool, version: &str) -> Result { /// 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 { let target = match (os, arch, tool) { + (Os::Linux, Arch:AArch64, Tool::WasmOpt) => "aarch64-linux", (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", @@ -201,7 +202,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, )) } From 4059310b9616ba9bc6997827cfcc48d84324ab22 Mon Sep 17 00:00:00 2001 From: Daniel Iisak Mikael Kristiansson <145011902+dkristia@users.noreply.github.com> Date: Wed, 22 May 2024 13:45:32 +0300 Subject: [PATCH 2/3] fix prior commit --- src/install/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/install/mod.rs b/src/install/mod.rs index 926ec16d..e0a2a792 100644 --- a/src/install/mod.rs +++ b/src/install/mod.rs @@ -173,7 +173,8 @@ fn prebuilt_url(tool: &Tool, version: &str) -> Result { /// 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 { let target = match (os, arch, tool) { - (Os::Linux, Arch:AArch64, Tool::WasmOpt) => "aarch64-linux", + (Os::Linux, Arch::AArch64, Tool::WasmOpt) => "aarch64-linux", + (Os::Linux, Arch::AArch64, _) => "aarch64-unknown-linux-musl", (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", From e4d54669363e005c09c058d0e2e530e7189821b8 Mon Sep 17 00:00:00 2001 From: Daniel Iisak Mikael Kristiansson <145011902+dkristia@users.noreply.github.com> Date: Wed, 22 May 2024 13:50:00 +0300 Subject: [PATCH 3/3] fix assumption in prior commit --- src/install/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/install/mod.rs b/src/install/mod.rs index e0a2a792..f771b2e6 100644 --- a/src/install/mod.rs +++ b/src/install/mod.rs @@ -174,7 +174,7 @@ fn prebuilt_url(tool: &Tool, version: &str) -> Result { pub fn prebuilt_url_for(tool: &Tool, version: &str, arch: &Arch, os: &Os) -> Result { let target = match (os, arch, tool) { (Os::Linux, Arch::AArch64, Tool::WasmOpt) => "aarch64-linux", - (Os::Linux, Arch::AArch64, _) => "aarch64-unknown-linux-musl", + (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",