Skip to content

Commit b168a4c

Browse files
gendxAmanieu
andauthored
Detect CPU features with Linux methods on Android for non-Intel CPUs. (#1351)
Co-authored-by: Amanieu d'Antras <[email protected]>
1 parent 0159b51 commit b168a4c

File tree

1 file changed

+1
-1
lines changed
  • crates/std_detect/src/detect

1 file changed

+1
-1
lines changed

crates/std_detect/src/detect/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ cfg_if! {
4747
// On x86/x86_64 no OS specific functionality is required.
4848
#[path = "os/x86.rs"]
4949
mod os;
50-
} else if #[cfg(all(target_os = "linux", feature = "libc"))] {
50+
} else if #[cfg(all(any(target_os = "linux", target_os = "android"), feature = "libc"))] {
5151
#[path = "os/linux/mod.rs"]
5252
mod os;
5353
} else if #[cfg(all(target_os = "freebsd", feature = "libc"))] {

0 commit comments

Comments
 (0)