mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-24 14:28:42 +00:00
Fix detect-targets on android targets (#1576)
* Fix detect-targets on android targets By enabling linux fallback on Android. Also add CI regression test for aarch64-linux-android target. Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> * Fix CI: Add job `detect-targets-android-check` as required for merging Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> --------- Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
d02776c7fc
commit
8befa3d649
2 changed files with 31 additions and 2 deletions
|
@ -11,7 +11,7 @@ use tokio::process::Command;
|
|||
use tracing::debug;
|
||||
|
||||
cfg_if! {
|
||||
if #[cfg(target_os = "linux")] {
|
||||
if #[cfg(any(target_os = "linux", target_os = "android"))] {
|
||||
mod linux;
|
||||
} else if #[cfg(target_os = "macos")] {
|
||||
mod macos;
|
||||
|
@ -53,7 +53,7 @@ pub async fn detect_targets() -> Vec<String> {
|
|||
let mut targets = vec![target];
|
||||
targets.extend(windows::detect_alternative_targets(&targets[0]));
|
||||
targets
|
||||
} else if #[cfg(target_os = "linux")] {
|
||||
} else if #[cfg(any(target_os = "linux", target_os = "android"))] {
|
||||
// Linux is a bit special, since the result from `guess_host_triple`
|
||||
// might be wrong about whether glibc or musl is used.
|
||||
linux::detect_targets(target).await
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue