Force HAVE_BUILTIN_CLEAR_CACHE for GNU compilers

They always have __builtin___clear_cache
This commit is contained in:
SChernykh 2019-10-18 17:39:57 +02:00
parent 0ad992985c
commit a56febcd13

View file

@ -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")