From 8369f50018f796bb1da957b4404c01580102f2fb Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 4 Jan 2023 11:59:20 +0100 Subject: cmake/msvc: try enabling incremental lto again --- cmake/msvc.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/msvc.cmake b/cmake/msvc.cmake index 12470eef..ee43968f 100644 --- a/cmake/msvc.cmake +++ b/cmake/msvc.cmake @@ -154,11 +154,11 @@ set(_CXXFLAGS_RELEASE "${_CFLAGS_RELEASE}") set(_CXXFLAGS_DEBUG "${_CFLAGS_DEBUG}") set(_LDFLAGS "-WX") -set(_LDFLAGS_RELEASE "-OPT:REF,ICF=10 -LTCG -DEBUG:FULL") +set(_LDFLAGS_RELEASE "-OPT:REF,ICF=10 -LTCG:INCREMENTAL -DEBUG:FULL") set(_LDFLAGS_DEBUG "-DEBUG:FULL") set(_LDFLAGS_STATIC "-WX") -set(_LDFLAGS_STATIC_RELEASE "-LTCG") +set(_LDFLAGS_STATIC_RELEASE "-LTCG:INCREMENTAL") set(_LDFLAGS_STATIC_DEBUG "") set(CMAKE_BUILD_TYPE_INIT "RELEASE" CACHE INTERNAL "") -- cgit v1.2.3