Merge pull request #1553 from songwei163/weisong/fix_m1_pro_compile_scrap_error
fix m1 pro scrap compile error
This commit is contained in:
commit
6c897687d4
@ -13,7 +13,13 @@ fn link_vcpkg(mut path: PathBuf, name: &str) -> PathBuf {
|
|||||||
target_arch = "arm64".to_owned();
|
target_arch = "arm64".to_owned();
|
||||||
}
|
}
|
||||||
let mut target = if target_os == "macos" {
|
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" {
|
} else if target_os == "windows" {
|
||||||
"x64-windows-static".to_owned()
|
"x64-windows-static".to_owned()
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user