diff options
| author | Taiki Endo <te316e89@gmail.com> | 2023-02-12 16:36:31 +0900 |
|---|---|---|
| committer | Amanieu d'Antras <amanieu@gmail.com> | 2023-02-13 02:04:54 +0100 |
| commit | e6b7951ccde53e38126a771fc233169e2f381fd5 (patch) | |
| tree | a34874ae9ef54c3c63c5df25c6368106d99e71bb /library/stdarch/crates/std_detect | |
| parent | 2ebd1395ec6d3ce1bd2cbead500c421e3fba777b (diff) | |
| download | rust-e6b7951ccde53e38126a771fc233169e2f381fd5.tar.gz rust-e6b7951ccde53e38126a771fc233169e2f381fd5.zip | |
std_detect: Remove extra cfg
This module is already `#[cfg(target_arch = "aarch64")]`.
Diffstat (limited to 'library/stdarch/crates/std_detect')
| -rw-r--r-- | library/stdarch/crates/std_detect/src/detect/os/linux/aarch64.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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() { |
