Sam James a4eae64aa2 meson.eclass: support incremental LTO for GCC
Support -flto-incremental=/path/to/cache being used with GCC. Personally,
I am using this hook in /etc/portage/bashrc:
```
pre_src_configure() {
        if [[ -n ${PORTAGE_LTO_CACHE} ]] ; then
                local lto_path=/var/tmp/portage/lto/${CATEGORY}/${PN}
                mkdir -p "${lto_path}"
                export CFLAGS="${CFLAGS} -flto-incremental=${lto_path} -flto-compression-level=19"
                export CXXFLAGS="${CXXFLAGS} -flto-incremental=${lto_path} -flto-compression-level=19"
                export LDFLAGS="${LDFLAGS} -flto-incremental=${lto_path} -flto-compression-level=19"
        fi
}
```

... and then `PORTAGE_LTO_CACHE=1` in my development environment.

Signed-off-by: Sam James <sam@gentoo.org>
2025-11-16 05:50:33 +00:00
2025-11-15 10:45:52 +02:00
2025-11-12 09:40:31 +00:00
2025-11-12 13:08:35 -05:00
2025-11-15 08:26:04 +02:00
2025-11-04 10:45:41 +01:00
2025-11-15 08:21:18 +01:00
2025-10-30 09:37:30 +01:00
2025-11-04 18:00:59 +01:00
2025-11-12 13:17:31 -05:00
2025-11-10 23:39:31 +01:00
2025-11-04 09:13:46 +01:00
2025-11-09 11:55:17 +01:00
2025-11-06 20:29:20 +01:00
2025-11-04 09:20:05 +01:00
2025-11-15 18:08:53 +01:00
2025-11-15 19:43:32 +00:00
2025-11-15 14:30:02 +02:00
…
S
Description
No description provided
9.8 GiB
Languages
Shell 97.9%
Roff 1.4%
Emacs Lisp 0.2%
C 0.1%