1
0
Fork 0
forked from len0rd/rockbox

build: Allow LTO to work globally, not just codecs/plugins

IMPORTANT: There is no guarantee this will compile cleanly much less
_work_ on any given target.  This is purely to enable future hackery.

Change-Id: Ib58f21b717719fd4325622b446a60779406ae035
This commit is contained in:
Solomon Peachy 2024-11-24 08:23:38 -05:00
parent 200529532b
commit bdf1690cb2
4 changed files with 10 additions and 5 deletions

2
tools/configure vendored
View file

@ -1079,7 +1079,7 @@ S(m)all C lib, Logf to Ser(i)al port, LTO Build(X), (E)rror on warnings"
[Xx])
echo "LTO build enabled"
LTO_ARG="export USE_LTO=y"
# GCCOPTS="$GCCOPTS -flto"
GCCOPTS="$GCCOPTS -flto"
;;
[Ee])
echo "Treating all warnings as errors"