From 97f8f1e4c20e99795c5b65a8fc0e40d249355ed5 Mon Sep 17 00:00:00 2001 From: jcm <6864788+jcm93@users.noreply.github.com> Date: Thu, 26 Dec 2024 12:57:49 -0600 Subject: [PATCH] build: Exorcise demons from the clang-cl build Co-authored-by: John Tur --- cmake/windows/compilerconfig.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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>