Eli Schwartz 7801ce6a69 dot-a.eclass: make strip-lto remember if guarantee-fat ran
The current implementation checks repeatedly if `tc-is-lto` is true.  In
addition to running a small compile check redundantly, this has a
potential correctness downside. An ebuild could do this:

```
lto-guarantee-fat
tc-is-lto && myeconfargs+=( --enable-lto )
filter-lto
```

The idea is, the configure script has special handling and simply adding
-flto is too "simple" to work. e.g. not all sources build with LTO.

When this happens, strip-lto-bytecode "thinks" we didn't build with LTO
at all, and returns early. By tracking state across functions -- and
across phases -- we can reliably tell if `lto-guarantee-fat` actually
"succeeded".

Bug: https://bugs.gentoo.org/958412
Acked-by: Sam James <sam@gentoo.org>
Signed-off-by: Eli Schwartz <eschwartz@gentoo.org>
2025-07-03 23:20:45 -04:00
2025-07-03 13:13:57 +03:00
2025-06-26 12:59:01 +02:00
2025-06-21 09:07:27 +02:00
2025-07-03 22:57:49 -04:00
2025-07-03 10:04:02 +02:00
2025-06-30 14:51:14 +02:00
2025-07-03 22:37:40 +02:00
2025-06-08 05:54:10 +01:00
2025-06-14 09:21:36 +02:00
2025-06-29 23:52:07 +01:00
2025-06-21 19:00:26 +02:00
…
S
Description
No description provided
9.8 GiB
Languages
Shell 98%
Roff 1.4%
Emacs Lisp 0.2%
C 0.1%