diff options
| author | Taiki Endo <te316e89@gmail.com> | 2025-04-16 22:44:55 +0900 |
|---|---|---|
| committer | Amanieu d'Antras <amanieu@gmail.com> | 2025-04-16 19:43:08 +0000 |
| commit | 8f30830d97539f751ddd40d3f6c2f6eaffe32716 (patch) | |
| tree | dd07d965d7b30e332cf8380afbc350cff05de826 /library/stdarch/crates/std_detect/src/detect | |
| parent | 2d2390ea398ab314e3d67a3fdfd627afb5ac33bc (diff) | |
| download | rust-8f30830d97539f751ddd40d3f6c2f6eaffe32716.tar.gz rust-8f30830d97539f751ddd40d3f6c2f6eaffe32716.zip | |
Revert "std_detect: Do not use libc::getauxval on 32-bit Android"
This reverts commit 85572dc298f5222902c9b200cebf5d045e769a83.
Diffstat (limited to 'library/stdarch/crates/std_detect/src/detect')
| -rw-r--r-- | library/stdarch/crates/std_detect/src/detect/os/linux/auxvec.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/library/stdarch/crates/std_detect/src/detect/os/linux/auxvec.rs b/library/stdarch/crates/std_detect/src/detect/os/linux/auxvec.rs index 8c911fd8d96..0f643bbd272 100644 --- a/library/stdarch/crates/std_detect/src/detect/os/linux/auxvec.rs +++ b/library/stdarch/crates/std_detect/src/detect/os/linux/auxvec.rs @@ -139,8 +139,7 @@ fn getauxval(key: usize) -> Result<usize, ()> { target_os = "linux", any(target_env = "gnu", target_env = "musl", target_env = "ohos"), )), - // TODO: libc crate currently doesn't provide getauxval on 32-bit Android. - not(all(target_os = "android", target_pointer_width = "64")), + not(target_os = "android"), ))] { let ffi_getauxval: F = unsafe { let ptr = libc::dlsym(libc::RTLD_DEFAULT, c"getauxval".as_ptr()); |
