Skip to content

Commit

Permalink
getauxval isn't defined on uclibc, so disable dynamic feature detection
Browse files Browse the repository at this point in the history
  • Loading branch information
skrap committed Nov 13, 2023
1 parent be27e8e commit 5814da6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/cpu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ pub(crate) fn features() -> Features {
any(
target_os = "android",
target_os = "fuchsia",
target_os = "linux",
all(target_os = "linux", not(target_env = "uclibc")),
target_os = "windows"
)
))]
Expand Down
7 changes: 4 additions & 3 deletions src/cpu/arm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@

#[cfg(all(
any(target_os = "android", target_os = "linux"),
any(target_arch = "aarch64", target_arch = "arm")
any(target_arch = "aarch64", target_arch = "arm"),
not(target_env = "uclibc")
))]
fn detect_features() -> u32 {
use libc::c_ulong;
Expand Down Expand Up @@ -196,7 +197,7 @@ impl Feature {
any(
target_os = "android",
target_os = "fuchsia",
target_os = "linux",
all(target_os = "linux", not(target_env = "uclibc")),
target_os = "windows"
),
any(target_arch = "arm", target_arch = "aarch64")
Expand Down Expand Up @@ -251,7 +252,7 @@ features! {
any(
target_os = "android",
target_os = "fuchsia",
target_os = "linux",
all(target_os = "linux", not(target_env = "uclibc")),
target_os = "windows"
)
))]
Expand Down

0 comments on commit 5814da6

Please sign in to comment.