mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-05-04 11:10:02 +00:00
detect-targets: Add support of MacOS universal binary (#552)
* Add support for MacOS universal bin * Refactor: Extract new fn `macos::detect_alternative_targets` Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
26b28dc63f
commit
62e350eba9
2 changed files with 16 additions and 8 deletions
|
@ -42,9 +42,7 @@ pub async fn detect_targets() -> Vec<String> {
|
|||
v.push(v[0].replace("gnu", "musl"));
|
||||
}
|
||||
} else if #[cfg(target_os = "macos")] {
|
||||
if &*v[0] == macos::AARCH64 {
|
||||
v.push(macos::X86.into());
|
||||
}
|
||||
v.extend(macos::detect_alternative_targets(&v[0]));
|
||||
} else if #[cfg(target_os = "windows")] {
|
||||
v.extend(windows::detect_alternative_targets(&v[0]));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue