diff --git a/cmake/windows/compilerconfig.cmake b/cmake/windows/compilerconfig.cmake index e5283ba26..0ffe6cc8a 100644 --- a/cmake/windows/compilerconfig.cmake +++ b/cmake/windows/compilerconfig.cmake @@ -90,8 +90,10 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang") # generate PDBs rather than embed debug symbols set(CMAKE_MSVC_DEBUG_INFORMATION_FORMAT ProgramDatabase) add_compile_options("$<$:${_ares_msvc_cxx_options}>") + # kill + add_compile_options($<$,$>>:-flto=thin>) add_link_options( - $<$>:/LTCG> + $<$,$>>:-flto=thin> $<$>:/INCREMENTAL:NO> /Debug $<$>:/OPT:REF>