-
- Downloads
Fix Arm crypto build failure on clang post-12.
I had manually defined the ACLE feature macro __ARM_FEATURE_CRYPTO before including arm_neon.h, in the expectation that it would turn on the AES, SHA-1 and SHA-256 intrinsics. But up-to-date clang has now separated those intrinsics from each other, and guarded them by two more specific feature macros, one for AES and one for the two SHAs. So just defining __ARM_FEATURE_CRYPTO isn't good enough any more, and my attempts to use crypto intrinsics in the following functions provoke a compile error. The fix is to define the appropriate new feature macro by hand (leaving the old definition in place for earlier clang versions). This fix is only needed on the release branch, of course: on main, we've already done the reorganisation that avoids the need to manually define ACLE feature macros at all, because the accelerated crypto code is compiled in separate objects using command-line compile flags in the way that the toolchain normally expects.
Loading
Please register or sign in to comment