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:
parent
9f7ded4282
commit
45e3039ee9
1 changed files with 1 additions and 1 deletions
|
|
@ -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"))] {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue