From 95705171d53680fe3aef50350642251098d57399 Mon Sep 17 00:00:00 2001 From: Tony Arcieri Date: Wed, 24 Apr 2024 08:21:42 -0600 Subject: [PATCH] cpufeatures: fix macOS build 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 --- cpufeatures/src/aarch64.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cpufeatures/src/aarch64.rs b/cpufeatures/src/aarch64.rs index 2305d898..4248a754 100644 --- a/cpufeatures/src/aarch64.rs +++ b/cpufeatures/src/aarch64.rs @@ -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`.