From 8df8f2ec20fd4ff1eb51ffbbd5e125108329f4fc Mon Sep 17 00:00:00 2001 From: Tetsuya Hayashi Date: Sun, 23 Jul 2023 10:50:36 +0900 Subject: [PATCH] fix build failure of Intel Compiler Classic Intel Compiler Classic itself doesn't have x86gprintrin.h and it seems incompatible with GCC's x86gprintrin.h --- quill/include/quill/detail/misc/Rdtsc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quill/include/quill/detail/misc/Rdtsc.h b/quill/include/quill/detail/misc/Rdtsc.h index e4fb8bee..66876ae1 100644 --- a/quill/include/quill/detail/misc/Rdtsc.h +++ b/quill/include/quill/detail/misc/Rdtsc.h @@ -15,7 +15,7 @@ // assume x86-64 .. #if defined(_WIN32) #include - #elif (defined(__GNUC__) && __GNUC__ > 10) || (defined(__clang_major__) && __clang_major__ > 11) + #elif ((defined(__GNUC__) && __GNUC__ > 10) && !defined(__INTEL_COMPILER)) || (defined(__clang_major__) && __clang_major__ > 11) #include #else // older compiler versions do not have