mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 10:18:25 +00:00
Revert "std_detect: Do not use libc::getauxval on 32-bit Android"
This reverts commit 85572dc298f5222902c9b200cebf5d045e769a83.
This commit is contained in:
parent
2d2390ea39
commit
8f30830d97
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user