diff options
| author | Sam James <sam@gentoo.org> | 2025-10-05 21:34:28 +0100 |
|---|---|---|
| committer | Sam James <sam@gentoo.org> | 2025-10-05 21:35:01 +0100 |
| commit | 417a78d6fd0219f0fc85426a1bb981bdc4e4442e (patch) | |
| tree | 6f120840c96ebff1039f8131490be206cd74285a /eclass | |
| parent | f04930f87b988794ed89aed07156d1c1c66124ae (diff) | |
| download | kde-417a78d6fd0219f0fc85426a1bb981bdc4e4442e.tar.gz kde-417a78d6fd0219f0fc85426a1bb981bdc4e4442e.tar.bz2 kde-417a78d6fd0219f0fc85426a1bb981bdc4e4442e.zip | |
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@gentoo.org>
Diffstat (limited to 'eclass')
| -rw-r--r-- | eclass/cmake.eclass | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/eclass/cmake.eclass b/eclass/cmake.eclass index 57334ae29cc..9339d2401d6 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_ |
