From e6b7135b96d535bc27abba153090739942ecc984 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 2 Apr 2018 15:31:16 +0100 Subject: [Minor] Fix AVX2 sanity check in clang --- src/libcryptobox/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libcryptobox/CMakeLists.txt b/src/libcryptobox/CMakeLists.txt index 09a1db467..de552a805 100644 --- a/src/libcryptobox/CMakeLists.txt +++ b/src/libcryptobox/CMakeLists.txt @@ -71,9 +71,11 @@ IF("${ARCH}" STREQUAL "x86_64") #define __AVX2__ #endif +#ifndef __clang__ #if __GNUC__ <= 4 && __GNUC_MINOR__ <= 8 #error Broken due to compiler bug #endif +#endif #include static void foo(const char* a) __attribute__((__target__(\"avx2\"))); -- cgit v1.2.3