Skip to content

Commit

Permalink
Detect CPU features with Linux methods on Android for non-Intel CPUs. (
Browse files Browse the repository at this point in the history
…#1351)

Co-authored-by: Amanieu d'Antras <amanieu@gmail.com>
  • Loading branch information
gendx and Amanieu authored Nov 9, 2022
1 parent 0159b51 commit b168a4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/std_detect/src/detect/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"))] {
Expand Down

0 comments on commit b168a4c

Please sign in to comment.