From 66942881ca7ed3063f48970b9509b07e23ba7fac Mon Sep 17 00:00:00 2001 From: Gregor Jasny Date: Sun, 22 Aug 2021 13:09:47 +0200 Subject: [PATCH] feat(cmake): Disable IPO for mingw On mingw IPO seems to be broken (out-of-diskspace errors and lacking linker module support), therefore IPO support is being deactivated. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bb4b251ab..fcc2134bd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -66,7 +66,7 @@ endif() message(STATUS "Ccache dev mode: ${CCACHE_DEV_MODE}") option(ENABLE_IPO "Enable interprocedural (link time, LTO) optimization" OFF) -if(ENABLE_IPO) +if(ENABLE_IPO AND NOT MINGW) set(CMAKE_INTERPROCEDURAL_OPTIMIZATION ON) endif() -- 2.47.2