We want to use -flto=auto in Arch Linux to speed up building, but we
can't hardcode it in buildenv/lto.sh because other downstreams might
have clang < 13.0.0 which did not recognize -flto=auto as equivalent
to -flto=full.
Introducing an LTOFLAGS variable to makepkg.conf seems the way to go.
Signed-off-by: Allan McRae <allan@archlinux.org>
(cherry picked from commit
|
||
|---|---|---|
| .. | ||
| buildflags.sh.in | ||
| compiler.sh.in | ||
| debugflags.sh.in | ||
| lto.sh.in | ||
| makeflags.sh.in | ||
| meson.build | ||