Summary: | cmake.eclass: pass -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=OFF | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Sam James <sam> |
Component: | Eclasses | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | eschwartz93, kde |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: |
https://bugs.gentoo.org/show_bug.cgi?id=856778 https://bugs.gentoo.org/show_bug.cgi?id=927037 |
||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Sam James
2024-03-17 06:13:38 UTC
https://cmake.org/cmake/help/latest/prop_tgt/INTERPROCEDURAL_OPTIMIZATION.html#prop_tgt:INTERPROCEDURAL_OPTIMIZATION https://cmake.org/cmake/help/latest/variable/CMAKE_INTERPROCEDURAL_OPTIMIZATION.html#variable:CMAKE_INTERPROCEDURAL_OPTIMIZATION Note the meson.eclass approach is beneficial since there are meson projects that specifically set some targets known to not work with LTO to off. e.g. scipy has some really old fortran code with no intention of fixing it, since they just want to migrate *away* from it. So they force LTO off, but other scipy extension modules are expected to work fine. Similar logic may or may not apply to cmake / projects using cmake. (Or might not apply.) Note that cmake seems to add -flo=auto when this option is enabled. Not sure if there is any way to control the exact flags it adds. |