]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
feat(cmake): Disable IPO for mingw 918/head
authorGregor Jasny <gregor.jasny@logmein.com>
Sun, 22 Aug 2021 11:09:47 +0000 (13:09 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 29 Aug 2021 18:46:52 +0000 (20:46 +0200)
On mingw IPO seems to be broken (out-of-diskspace errors
and lacking linker module support), therefore IPO support is being
deactivated.

CMakeLists.txt

index bb4b251aba6fd526f55704340dcd3287e4aae420..fcc2134bd13a6153eed5dd5090afdb01b3ea76df 100644 (file)
@@ -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()