From 1b1a32cec378d2d7e17238b9b824b0a6643ce4d2 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 29 Mar 2018 18:53:32 +0100 Subject: [Minor] Another try to fix broken gcc --- src/libcryptobox/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libcryptobox/CMakeLists.txt b/src/libcryptobox/CMakeLists.txt index 3c83f21f9..09a1db467 100644 --- a/src/libcryptobox/CMakeLists.txt +++ b/src/libcryptobox/CMakeLists.txt @@ -71,6 +71,10 @@ IF("${ARCH}" STREQUAL "x86_64") #define __AVX2__ #endif +#if __GNUC__ <= 4 && __GNUC_MINOR__ <= 8 +#error Broken due to compiler bug +#endif + #include static void foo(const char* a) __attribute__((__target__(\"avx2\"))); static void foo(const char* a) -- cgit v1.2.3