]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Fix AVX2 sanity check in clang
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 2 Apr 2018 14:31:16 +0000 (15:31 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 2 Apr 2018 14:31:16 +0000 (15:31 +0100)
src/libcryptobox/CMakeLists.txt

index 09a1db4678a9f6d309a4310cecd5cf920bbbe591..de552a805a6288a753a03017782033f841ad35f4 100644 (file)
@@ -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 <immintrin.h>
 static void foo(const char* a) __attribute__((__target__(\"avx2\")));