From: Vsevolod Stakhov Date: Mon, 2 Apr 2018 14:31:16 +0000 (+0100) Subject: [Minor] Fix AVX2 sanity check in clang X-Git-Tag: 1.7.3~54 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e6b7135b96d535bc27abba153090739942ecc984;p=thirdparty%2Frspamd.git [Minor] Fix AVX2 sanity check in clang --- diff --git a/src/libcryptobox/CMakeLists.txt b/src/libcryptobox/CMakeLists.txt index 09a1db4678..de552a805a 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\")));