# HG changeset patch # User glx22 # Date 2022-12-29 23:48:57 # Node ID 9220ecb287e560aa126300abfe2d1e8de16fa08d # Parent 11311910aaaad241b10cc9d7423af0600e9c4efa Fix 57717a2: [CMake] Don't apply 'cl' workaround to 'clang-cl' diff --git a/cmake/CompileFlags.cmake b/cmake/CompileFlags.cmake --- 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-)