mirror of
https://github.com/rustdesk/magnum-opus.git
synced 2026-02-16 02:20:47 +00:00
fix macos aarch64 build (Apple Silicon)
validates for the macos running on aarch64 (Apple Silicon)
This commit is contained in:
4
build.rs
4
build.rs
@@ -11,8 +11,10 @@ fn link_vcpkg(mut path: PathBuf, name: &str) -> PathBuf {
|
|||||||
} else if target_arch == "aarch64" {
|
} else if target_arch == "aarch64" {
|
||||||
target_arch = "arm64".to_owned();
|
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()
|
"x64-osx".to_owned()
|
||||||
|
} else if target_os == "macos" && target_arch == "arm64" {
|
||||||
|
"arm64-osx".to_owned()
|
||||||
} else if target_os == "windows" {
|
} else if target_os == "windows" {
|
||||||
"x64-windows-static".to_owned()
|
"x64-windows-static".to_owned()
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user