Skip to content

Commit

Permalink
Fix arm
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake-Shadle committed Jan 31, 2024
1 parent 59f13f1 commit 2109cff
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions zng/cc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -289,11 +289,7 @@ pub fn build_zlib_ng(target: &str, compat: bool) {

// Support runtime detection on linux/android
if matches!(target_os.as_str(), "linux" | "android") {
for def in &[
"HAVE_SYS_AUXV_H",
"ARM_AUXV_HAS_CRC32",
"ARM_AUXV_HAS_CRC32",
] {
for def in &["HAVE_SYS_AUXV_H", "ARM_AUXV_HAS_CRC32"] {
cfg.define(def, None);
}

Expand All @@ -311,6 +307,7 @@ pub fn build_zlib_ng(target: &str, compat: bool) {
// we do that once later in this block
if !is_aarch64 {
cfg.mflag("-march=armv8-a+crc", None);
cfg.define("ARM_ASM_HWCAP", None);
}
}

Expand Down

0 comments on commit 2109cff

Please sign in to comment.