1
0
Fork 0
forked from len0rd/rockbox

build: Experimental LTO support, phase one

* Only codecs and plugins are enabled
 * Only native builds (so far)
 * Only tested on xDuoo X3 (MIPS, monochrome)
 * opus & speex generate some warnings
 * Significant compile time impact

Change-Id: I519b0d179631a54b2103cd67225bd5ec6ad3bd2f
This commit is contained in:
Solomon Peachy 2023-07-02 20:43:01 -04:00
parent 7b12cc3927
commit 73f40d8a23
4 changed files with 31 additions and 1 deletions

8
tools/configure vendored
View file

@ -945,13 +945,14 @@ whichadvanced () {
echo ""
printf "Enter your developer options (press only enter when done)\n\
(D)EBUG, (L)ogf, Boot(c)hart, (S)imulator, (P)rofiling, (V)oice, (U)SB Serial, (W)in32 crosscompile,\n\
Win(6)4 crosscompile, (T)est plugins, (O)mit plugins, S(m)all C lib, Logf to Ser(i)al port:"
Win(6)4 crosscompile, (T)est plugins, (O)mit plugins, S(m)all C lib, Logf to Ser(i)al port, LTO (B)uild "
if [ "$modelname" = "iaudiom5" ]; then
printf ", (F)M radio MOD"
fi
if [ "$modelname" = "iriverh120" ]; then
printf ", (R)TC MOD"
fi
printf ":"
echo ""
fi
@ -1043,6 +1044,10 @@ Win(6)4 crosscompile, (T)est plugins, (O)mit plugins, S(m)all C lib, Logf to Ser
win32crosscompile="yes"
win64="yes"
;;
[Bb])
echo "LTO build enabled"
LTO_ARG="export USE_LTO=y"
;;
"") # Match enter press when finished with advanced options
cont=0
;;
@ -4806,6 +4811,7 @@ export ANDROID_PLATFORM_VERSION=${ANDROID_PLATFORM_VERSION}
export TOOLSET=${toolset}
export PIPER_MODEL_DIR=${PIPER_MODEL_DIR}
$CCACHE_ARG
$LTO_ARG
CONFIGURE_OPTIONS=${cmdline}