diff --git a/Sources/Shared/Core/Logger.h b/Sources/Shared/Core/Logger.h index 0f706dfd..eb1b9388 100644 --- a/Sources/Shared/Core/Logger.h +++ b/Sources/Shared/Core/Logger.h @@ -51,8 +51,7 @@ # include # endif - // _mm_clflushopt is supported only since Skylake and requires "-mclflushopt" option on GCC/clang, and is undefined on clang-cl -# if defined(DEATH_TARGET_X86) && defined(DEATH_TARGET_CLFLUSHOPT) && !defined(DEATH_TARGET_CLANG_CL) +# if defined(DEATH_TARGET_X86) # if defined(DEATH_TARGET_MSVC) # include # else @@ -447,6 +446,7 @@ namespace Death { namespace Trace { T _lastFlushedReaderPos{0}; # if defined(DEATH_TARGET_X86) && defined(DEATH_TARGET_CLFLUSHOPT) && !defined(DEATH_TARGET_CLANG_CL) + // _mm_clflushopt is supported only since Skylake and requires "-mclflushopt" option on GCC/clang, and is undefined on clang-cl void flushCacheLines(T& last, T offset) { T lastDiff = last - (last & CacheLineMask); diff --git a/cmake/ncine_compiler_options.cmake b/cmake/ncine_compiler_options.cmake index f32a9bdf..9ca461ad 100644 --- a/cmake/ncine_compiler_options.cmake +++ b/cmake/ncine_compiler_options.cmake @@ -191,14 +191,14 @@ else() # GCC and LLVM endif() # _mm_clflushopt also requires "-mclflushopt" option on GCC/clang - if(CMAKE_OSX_ARCHITECTURES) - set(CPU_ARCH "${CMAKE_OSX_ARCHITECTURES}") - else() - set(CPU_ARCH "${CMAKE_SYSTEM_PROCESSOR}") - endif() - if ("${CPU_ARCH}" STREQUAL "x86_64") - target_compile_options(${NCINE_APP} PRIVATE -mclflushopt) - endif() + #if(CMAKE_OSX_ARCHITECTURES) + # set(CPU_ARCH "${CMAKE_OSX_ARCHITECTURES}") + #else() + # set(CPU_ARCH "${CMAKE_SYSTEM_PROCESSOR}") + #endif() + #if ("${CPU_ARCH}" STREQUAL "x86_64") + # target_compile_options(${NCINE_APP} PRIVATE -mclflushopt) + #endif() if(NCINE_WITH_TRACY) target_compile_options(${NCINE_APP} PRIVATE $<$:-g -fno-omit-frame-pointer>)