summaryrefslogtreecommitdiffstats
path: root/src/libcryptobox
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-04-02 15:31:16 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-04-02 15:31:16 +0100
commite6b7135b96d535bc27abba153090739942ecc984 (patch)
tree24474457524eac39f3e473cf38f37a805f614fa9 /src/libcryptobox
parent3f3fe0624e64d379c6c7ff3d9ff2a2b8e5e278d4 (diff)
downloadrspamd-e6b7135b96d535bc27abba153090739942ecc984.tar.gz
rspamd-e6b7135b96d535bc27abba153090739942ecc984.zip
[Minor] Fix AVX2 sanity check in clang
Diffstat (limited to 'src/libcryptobox')
-rw-r--r--src/libcryptobox/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
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 <immintrin.h>
static void foo(const char* a) __attribute__((__target__(\"avx2\")));