From c0eab7f7abfc244e9fcd482520542329da31f87c Mon Sep 17 00:00:00 2001 From: Tony Arcieri Date: Wed, 24 Apr 2024 08:31:28 -0600 Subject: [PATCH] cpufeatures: fix macOS build (#1066) 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`.