diff options
author | Jeffrey Walton <noloader@gmail.com> | 2021-04-19 08:54:33 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2021-04-19 08:54:33 -0400 |
commit | f1049c78bc65dbe1f9c9ab9ad6894f3cd2099215 (patch) | |
tree | 3e51f03a37da991adbe669001dea0c7b534c3b13 /lsh512.cpp | |
parent | 07da15a8bb1785a3a68ee7e5575d5bc829ae8437 (diff) | |
download | cryptopp-git-f1049c78bc65dbe1f9c9ab9ad6894f3cd2099215.tar.gz |
Fix LLVM Clang compile
Diffstat (limited to 'lsh512.cpp')
-rw-r--r-- | lsh512.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -66,9 +66,10 @@ # include <immintrin.h>
#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 <x86intrin.h>
# define GCC_HAVE_TARGET 1
# define GCC_TARGET_DEFAULT __attribute__ ((target ("default")))
|