Skip to content

Commit

Permalink
cpufeatures: fix macOS build (#1066)
Browse files Browse the repository at this point in the history
The "sm4" token wasn't being handled. To fix the bleeding, this adds it
but hardcoded to disabled.

See build failure here: https://github.com/RustCrypto/utils/actions/runs/8818083683/job/24206057206?pr=1065
  • Loading branch information
tarcieri committed Apr 24, 2024
1 parent 6d383a5 commit c0eab7f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cpufeatures/src/aarch64.rs
Expand Up @@ -117,6 +117,9 @@ macro_rules! check {
&& $crate::aarch64::sysctlbyname(b"hw.optional.armv8_2_sha3\0")
}
};
("sm4") => {
false
};
}

/// Apple helper function for calling `sysctlbyname`.
Expand Down

0 comments on commit c0eab7f

Please sign in to comment.