From a56febcd13a4da8a62a55940b6edc7e8b9a79935 Mon Sep 17 00:00:00 2001 From: SChernykh Date: Fri, 18 Oct 2019 17:39:57 +0200 Subject: [PATCH] Force HAVE_BUILTIN_CLEAR_CACHE for GNU compilers They always have __builtin___clear_cache --- cmake/flags.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmake/flags.cmake b/cmake/flags.cmake index 97f22f3c..e9533eed 100644 --- a/cmake/flags.cmake +++ b/cmake/flags.cmake @@ -54,6 +54,8 @@ if (CMAKE_CXX_COMPILER_ID MATCHES GNU) #set(CMAKE_C_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -gdwarf-2") + add_definitions(/DHAVE_BUILTIN_CLEAR_CACHE) + elseif (CMAKE_CXX_COMPILER_ID MATCHES MSVC) set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} /Ox /Ot /Oi /MT /GL")