Merge pull request #1553 from songwei163/weisong/fix_m1_pro_compile_scrap_error

fix m1 pro scrap compile error
This commit is contained in:
RustDesk 2022-09-16 22:44:08 +08:00 committed by GitHub
commit 6c897687d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,7 +13,13 @@ fn link_vcpkg(mut path: PathBuf, name: &str) -> PathBuf {
target_arch = "arm64".to_owned();
}
let mut target = if target_os == "macos" {
"x64-osx".to_owned()
if target_arch == "x64" {
"x64-osx".to_owned()
} else if target_arch == "arm64"{
"arm64-osx".to_owned()
} else {
format!("{}-{}", target_arch, target_os)
}
} else if target_os == "windows" {
"x64-windows-static".to_owned()
} else {