From 79be072c939168e907fe851690759dcfd6a326af Mon Sep 17 00:00:00 2001 From: Clovis Teixeira Date: Sat, 17 Sep 2022 03:25:01 -0300 Subject: [PATCH] fix macos aarch64 build (Apple Silicon) validates for the macos running on aarch64 (Apple Silicon) --- build.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build.rs b/build.rs index e06e459..1925833 100644 --- a/build.rs +++ b/build.rs @@ -11,8 +11,10 @@ fn link_vcpkg(mut path: PathBuf, name: &str) -> PathBuf { } else if target_arch == "aarch64" { target_arch = "arm64".to_owned(); } - let mut target = if target_os == "macos" { + let mut target = if target_os == "macos" && target_arch == "x64" { "x64-osx".to_owned() + } else if target_os == "macos" && target_arch == "arm64" { + "arm64-osx".to_owned() } else if target_os == "windows" { "x64-windows-static".to_owned() } else {