Revert "std_detect: Do not use libc::getauxval on 32-bit Android"

This reverts commit 85572dc298f5222902c9b200cebf5d045e769a83.
This commit is contained in:
Taiki Endo 2025-04-16 22:44:55 +09:00 committed by Amanieu d'Antras
parent 2d2390ea39
commit 8f30830d97

View File

@ -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());