From a1a1d07edaec89eae8a9e4600af949c7d14ffb89 Mon Sep 17 00:00:00 2001 From: Sainan Date: Fri, 29 Nov 2024 09:03:49 +0100 Subject: [PATCH] Add some guidance for outdated Clang versions on ARM --- soup/base.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/soup/base.hpp b/soup/base.hpp index 2b37c587..0430366c 100644 --- a/soup/base.hpp +++ b/soup/base.hpp @@ -103,6 +103,9 @@ #if defined(__arm__) || defined(__aarch64__) || defined(_M_ARM) || defined(_M_ARM64) #define SOUP_ARM true + #if defined(__clang_major__) && __clang_major__ <= 14 && !defined(__ARM_FEATURE_CRYPTO) + #error Your version of Clang predates some important fixes for ARM codegen. Provide -march=armv8+crypto+crc to compile Soup. Note that the resulting binary may be incorrect. + #endif #else #define SOUP_ARM false #endif