From: Gregor Jasny Date: Sun, 22 Aug 2021 11:09:47 +0000 (+0200) Subject: feat(cmake): Disable IPO for mingw X-Git-Tag: v4.4.1~9^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F918%2Fhead;p=thirdparty%2Fccache.git 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. --- 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()