Skip to content

Commit a428958

Browse files
taiki-eAmanieu
authored andcommitted
std_detect: Remove extra cfg
This module is already `#[cfg(target_arch = "aarch64")]`.
1 parent 72888a4 commit a428958

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/std_detect/src/detect/os/linux/aarch64.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use crate::detect::{bit, cache, Feature};
66
/// Try to read the features from the auxiliary vector, and if that fails, try
77
/// to read them from /proc/cpuinfo.
88
pub(crate) fn detect_features() -> cache::Initializer {
9-
#[cfg(all(target_arch = "aarch64", target_os = "android"))]
9+
#[cfg(target_os = "android")]
1010
let is_exynos9810 = {
1111
// Samsung Exynos 9810 has a bug that big and little cores have different
1212
// ISAs. And on older Android (pre-9), the kernel incorrectly reports
@@ -23,7 +23,7 @@ pub(crate) fn detect_features() -> cache::Initializer {
2323
// because Android 9+ includes the fix.
2424
len > 0 && arch.starts_with(b"exynos9810")
2525
};
26-
#[cfg(not(all(target_arch = "aarch64", target_os = "android")))]
26+
#[cfg(not(target_os = "android"))]
2727
let is_exynos9810 = false;
2828

2929
if let Ok(auxv) = auxvec::auxv() {

0 commit comments

Comments
 (0)