From e6b7951ccde53e38126a771fc233169e2f381fd5 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Sun, 12 Feb 2023 16:36:31 +0900 Subject: std_detect: Remove extra cfg This module is already `#[cfg(target_arch = "aarch64")]`. --- library/stdarch/crates/std_detect/src/detect/os/linux/aarch64.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'library/stdarch/crates/std_detect') diff --git a/library/stdarch/crates/std_detect/src/detect/os/linux/aarch64.rs b/library/stdarch/crates/std_detect/src/detect/os/linux/aarch64.rs index 7a6f4f4515b..782317d3575 100644 --- a/library/stdarch/crates/std_detect/src/detect/os/linux/aarch64.rs +++ b/library/stdarch/crates/std_detect/src/detect/os/linux/aarch64.rs @@ -6,7 +6,7 @@ use crate::detect::{bit, cache, Feature}; /// Try to read the features from the auxiliary vector, and if that fails, try /// to read them from /proc/cpuinfo. pub(crate) fn detect_features() -> cache::Initializer { - #[cfg(all(target_arch = "aarch64", target_os = "android"))] + #[cfg(target_os = "android")] let is_exynos9810 = { // Samsung Exynos 9810 has a bug that big and little cores have different // ISAs. And on older Android (pre-9), the kernel incorrectly reports @@ -23,7 +23,7 @@ pub(crate) fn detect_features() -> cache::Initializer { // because Android 9+ includes the fix. len > 0 && arch.starts_with(b"exynos9810") }; - #[cfg(not(all(target_arch = "aarch64", target_os = "android")))] + #[cfg(not(target_os = "android"))] let is_exynos9810 = false; if let Ok(auxv) = auxvec::auxv() { -- cgit 1.4.1-3-g733a5