Skip to content

Commit c0eab7f

Browse files
authored
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
1 parent 6d383a5 commit c0eab7f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cpufeatures/src/aarch64.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@ macro_rules! check {
117117
&& $crate::aarch64::sysctlbyname(b"hw.optional.armv8_2_sha3\0")
118118
}
119119
};
120+
("sm4") => {
121+
false
122+
};
120123
}
121124

122125
/// Apple helper function for calling `sysctlbyname`.

0 commit comments

Comments
 (0)