commit: 417a78d6fd0219f0fc85426a1bb981bdc4e4442e Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Sun Oct 5 20:34:28 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sun Oct 5 20:35:01 2025 +0000 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=417a78d6
cmake.eclass: disable automagic LTO Pass -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=OFF to avoid automagically enabling LTO if the compiler supports it. Note that unlike what we do w/ meson.eclass, we can't do some magic with `tc-is-lto` here because CMake doesn't allow refining the parallelism used. But that's fine. This change still allows using LTO via *FLAGS which is what we tell people to do. Bug: https://bugs.gentoo.org/927157 Signed-off-by: Sam James <sam <AT> gentoo.org> eclass/cmake.eclass | 1 + 1 file changed, 1 insertion(+) diff --git a/eclass/cmake.eclass b/eclass/cmake.eclass index 57334ae29c..9339d2401d 100644 --- a/eclass/cmake.eclass +++ b/eclass/cmake.eclass @@ -550,6 +550,7 @@ cmake_src_configure() { set(Python3_FIND_UNVERSIONED_NAMES FIRST CACHE STRING "") set(FETCHCONTENT_FULLY_DISCONNECTED ON CACHE BOOL "") set(CMAKE_DISABLE_PRECOMPILE_HEADERS ON CACHE BOOL "") + set(CMAKE_INTERPROCEDURAL_OPTIMIZATION OFF CACHE BOOL "") set(CMAKE_TLS_VERIFY ON CACHE BOOL "") set(CMAKE_COMPILE_WARNING_AS_ERROR OFF CACHE BOOL "") _EOF_
