Detect CPU features with Linux methods on Android for non-Intel CPUs. (#1351)

Co-authored-by: Amanieu d'Antras <amanieu@gmail.com>
This commit is contained in:
gendx 2022-11-09 18:38:48 +00:00 committed by GitHub
parent 9f7ded4282
commit 45e3039ee9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -47,7 +47,7 @@ cfg_if! {
// On x86/x86_64 no OS specific functionality is required.
#[path = "os/x86.rs"]
mod os;
} else if #[cfg(all(target_os = "linux", feature = "libc"))] {
} else if #[cfg(all(any(target_os = "linux", target_os = "android"), feature = "libc"))] {
#[path = "os/linux/mod.rs"]
mod os;
} else if #[cfg(all(target_os = "freebsd", feature = "libc"))] {