From f1049c78bc65dbe1f9c9ab9ad6894f3cd2099215 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Mon, 19 Apr 2021 08:54:33 -0400 Subject: Fix LLVM Clang compile --- lsh256.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lsh256.cpp') diff --git a/lsh256.cpp b/lsh256.cpp index 49c0f2f1..909268dd 100644 --- a/lsh256.cpp +++ b/lsh256.cpp @@ -62,9 +62,10 @@ # define CONST_M256_CAST(x) ((const __m256i *)(const void *)(x)) #endif -// https://stackoverflow.com/q/39958935 +// Should work for Clang 7 and above: https://stackoverflow.com/q/39958935. +// But Clang 10 is broke: https://bugs.llvm.org/show_bug.cgi?id=50025. #if defined(__i386__) || defined(__i686__) || defined(__amd64__) -# if (CRYPTOPP_GCC_VERSION >= 40800) || (CRYPTOPP_LLVM_CLANG_VERSION >= 70000) +# if (CRYPTOPP_GCC_VERSION >= 40800) # include # define GCC_HAVE_TARGET 1 # define GCC_TARGET_DEFAULT __attribute__ ((target ("default"))) -- cgit v1.2.1