From ffc1f7ce5667700d20e569d76e462d6254e816a0 Mon Sep 17 00:00:00 2001 From: glx22 Date: Fri, 30 Dec 2022 00:48:57 +0100 Subject: [PATCH] Fix 57717a2: [CMake] Don't apply 'cl' workaround to 'clang-cl' --- cmake/CompileFlags.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/CompileFlags.cmake b/cmake/CompileFlags.cmake index e3a4381136..27d9a48efa 100644 --- a/cmake/CompileFlags.cmake +++ b/cmake/CompileFlags.cmake @@ -56,7 +56,7 @@ macro(compile_flags) if(MSVC) add_compile_options(/W3) - if(MSVC_VERSION GREATER 1929) + if(MSVC_VERSION GREATER 1929 AND CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") # Starting with version 19.30, there is an optimisation bug, see #9966 for details # This flag disables the broken optimisation to work around the bug add_compile_options(/d2ssa-rse-)