From 73f40d8a2385543464d79d4461ab68eb56783d26 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Sun, 2 Jul 2023 20:43:01 -0400 Subject: 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 --- tools/configure | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'tools/configure') diff --git a/tools/configure b/tools/configure index c58ce164ac..bf96bf0058 100755 --- a/tools/configure +++ b/tools/configure @@ -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} -- cgit v1.2.3