Add support for aarch64 Windows platform in wasm_opt (#5442)
This commit is contained in:
1 parent
291c110dd4
commit
28c696bbfb
1 file changed
+4
@@ -139,6 +139,8 @@ async fn find_latest_wasm_opt_download_url() -> anyhow::Result<String> {
|
|||||||
// hardcoded for now to get around github api rate limits
|
// hardcoded for now to get around github api rate limits
|
||||||
if cfg!(all(target_os = "windows", target_arch = "x86_64")) {
|
if cfg!(all(target_os = "windows", target_arch = "x86_64")) {
|
||||||
return Ok("https://github.com/WebAssembly/binaryen/releases/download/version_127/binaryen-version_127-x86_64-windows.tar.gz".to_string());
|
return Ok("https://github.com/WebAssembly/binaryen/releases/download/version_127/binaryen-version_127-x86_64-windows.tar.gz".to_string());
|
||||||
|
} else if cfg!(all(target_os = "windows", target_arch = "aarch64")) {
|
||||||
|
return Ok("https://github.com/WebAssembly/binaryen/releases/download/version_127/binaryen-version_127-arm64-windows.tar.gz".to_string());
|
||||||
} else if cfg!(all(target_os = "linux", target_arch = "x86_64")) {
|
} else if cfg!(all(target_os = "linux", target_arch = "x86_64")) {
|
||||||
return Ok("https://github.com/WebAssembly/binaryen/releases/download/version_127/binaryen-version_127-x86_64-linux.tar.gz".to_string());
|
return Ok("https://github.com/WebAssembly/binaryen/releases/download/version_127/binaryen-version_127-x86_64-linux.tar.gz".to_string());
|
||||||
} else if cfg!(all(target_os = "linux", target_arch = "aarch64")) {
|
} else if cfg!(all(target_os = "linux", target_arch = "aarch64")) {
|
||||||
@@ -169,6 +171,8 @@ async fn find_latest_wasm_opt_download_url() -> anyhow::Result<String> {
|
|||||||
// Find the platform identifier based on the current OS and architecture
|
// Find the platform identifier based on the current OS and architecture
|
||||||
let platform = if cfg!(all(target_os = "windows", target_arch = "x86_64")) {
|
let platform = if cfg!(all(target_os = "windows", target_arch = "x86_64")) {
|
||||||
"x86_64-windows"
|
"x86_64-windows"
|
||||||
|
} else if cfg!(all(target_os = "windows", target_arch = "aarch64")) {
|
||||||
|
"arm64-windows"
|
||||||
} else if cfg!(all(target_os = "linux", target_arch = "x86_64")) {
|
} else if cfg!(all(target_os = "linux", target_arch = "x86_64")) {
|
||||||
"x86_64-linux"
|
"x86_64-linux"
|
||||||
} else if cfg!(all(target_os = "linux", target_arch = "aarch64")) {
|
} else if cfg!(all(target_os = "linux", target_arch = "aarch64")) {
|
||||||
|
|||||||
Reference in new issue
Block a user