From 5d3a4996388b88acfa689642b0ca43dc2d9724c1 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Tue, 19 Apr 2016 04:06:01 -0400 Subject: [PATCH] Fix Apple Clang 6.0/Clang 3.5 compile --- blake2.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/blake2.cpp b/blake2.cpp index 7c1b9b8d..62be06f8 100644 --- a/blake2.cpp +++ b/blake2.cpp @@ -23,6 +23,12 @@ NAMESPACE_BEGIN(CryptoPP) # undef CRYPTOPP_BOOL_SSE4_INTRINSICS_AVAILABLE #endif +// Apple Clang 6.0/Clang 3.5 does not have SSSE3 +// http://llvm.org/bugs/show_bug.cgi?id=20213 +#if (defined(CRYPTOPP_APPLE_CLANG_VERSION) && (CRYPTOPP_APPLE_CLANG_VERSION <= 60000)) || (defined(CRYPTOPP_CLANG_VERSION) && (CRYPTOPP_CLANG_VERSION <= 30500)) +# undef CRYPTOPP_BOOL_SSE4_INTRINSICS_AVAILABLE +#endif + // C/C++ implementation static inline void BLAKE2_CXX_Compress32(const byte* input, BLAKE2_State& state); static inline void BLAKE2_CXX_Compress64(const byte* input, BLAKE2_State& state);