fix macos aarch64 build (Apple Silicon)

validates for the macos running on aarch64 (Apple Silicon)
This commit is contained in:
Clovis Teixeira
2022-09-17 03:25:01 -03:00
committed by GitHub
parent 6247071a64
commit 79be072c93

View File

@@ -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 {