File tree 1 file changed +4
-2
lines changed
crates/std_detect/src/detect/os/linux
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,8 @@ pub(crate) fn auxv() -> Result<AuxVec, ()> {
71
71
#[ cfg( all(
72
72
feature = "std_detect_dlsym_getauxval" ,
73
73
not( all( target_os = "linux" , target_env = "gnu" ) ) ,
74
- not( target_os = "android" ) ,
74
+ // TODO: libc crate currently doesn't provide getauxval on 32-bit Android.
75
+ not( all( target_os = "android" , target_pointer_width = "64" ) ) ,
75
76
) ) ]
76
77
{
77
78
// Try to call a dynamically-linked getauxval function.
@@ -118,7 +119,8 @@ pub(crate) fn auxv() -> Result<AuxVec, ()> {
118
119
#[ cfg( any(
119
120
not( feature = "std_detect_dlsym_getauxval" ) ,
120
121
all( target_os = "linux" , target_env = "gnu" ) ,
121
- target_os = "android" ,
122
+ // TODO: libc crate currently doesn't provide getauxval on 32-bit Android.
123
+ all( target_os = "android" , target_pointer_width = "64" ) ,
122
124
) ) ]
123
125
{
124
126
// Targets with only AT_HWCAP:
You can’t perform that action at this time.
0 commit comments