diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2023-07-02 20:43:01 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2024-06-18 08:15:47 -0400 |
commit | 73f40d8a2385543464d79d4461ab68eb56783d26 (patch) | |
tree | 903d5b1eecc88ad8cf2acc6681eb8b91ddf8fafe /tools/configure | |
parent | 7b12cc39270c41459ffe98659d9899d02d8bf56b (diff) | |
download | rockbox-73f40d8a2385543464d79d4461ab68eb56783d26.tar.gz rockbox-73f40d8a2385543464d79d4461ab68eb56783d26.zip |
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
Diffstat (limited to 'tools/configure')
-rwxr-xr-x | tools/configure | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/configure b/tools/configure index c58ce164ac..bf96bf0058 100755 --- a/tools/configure +++ b/tools/configure | |||
@@ -945,13 +945,14 @@ whichadvanced () { | |||
945 | echo "" | 945 | echo "" |
946 | printf "Enter your developer options (press only enter when done)\n\ | 946 | printf "Enter your developer options (press only enter when done)\n\ |
947 | (D)EBUG, (L)ogf, Boot(c)hart, (S)imulator, (P)rofiling, (V)oice, (U)SB Serial, (W)in32 crosscompile,\n\ | 947 | (D)EBUG, (L)ogf, Boot(c)hart, (S)imulator, (P)rofiling, (V)oice, (U)SB Serial, (W)in32 crosscompile,\n\ |
948 | Win(6)4 crosscompile, (T)est plugins, (O)mit plugins, S(m)all C lib, Logf to Ser(i)al port:" | 948 | Win(6)4 crosscompile, (T)est plugins, (O)mit plugins, S(m)all C lib, Logf to Ser(i)al port, LTO (B)uild " |
949 | if [ "$modelname" = "iaudiom5" ]; then | 949 | if [ "$modelname" = "iaudiom5" ]; then |
950 | printf ", (F)M radio MOD" | 950 | printf ", (F)M radio MOD" |
951 | fi | 951 | fi |
952 | if [ "$modelname" = "iriverh120" ]; then | 952 | if [ "$modelname" = "iriverh120" ]; then |
953 | printf ", (R)TC MOD" | 953 | printf ", (R)TC MOD" |
954 | fi | 954 | fi |
955 | printf ":" | ||
955 | echo "" | 956 | echo "" |
956 | fi | 957 | fi |
957 | 958 | ||
@@ -1043,6 +1044,10 @@ Win(6)4 crosscompile, (T)est plugins, (O)mit plugins, S(m)all C lib, Logf to Ser | |||
1043 | win32crosscompile="yes" | 1044 | win32crosscompile="yes" |
1044 | win64="yes" | 1045 | win64="yes" |
1045 | ;; | 1046 | ;; |
1047 | [Bb]) | ||
1048 | echo "LTO build enabled" | ||
1049 | LTO_ARG="export USE_LTO=y" | ||
1050 | ;; | ||
1046 | "") # Match enter press when finished with advanced options | 1051 | "") # Match enter press when finished with advanced options |
1047 | cont=0 | 1052 | cont=0 |
1048 | ;; | 1053 | ;; |
@@ -4806,6 +4811,7 @@ export ANDROID_PLATFORM_VERSION=${ANDROID_PLATFORM_VERSION} | |||
4806 | export TOOLSET=${toolset} | 4811 | export TOOLSET=${toolset} |
4807 | export PIPER_MODEL_DIR=${PIPER_MODEL_DIR} | 4812 | export PIPER_MODEL_DIR=${PIPER_MODEL_DIR} |
4808 | $CCACHE_ARG | 4813 | $CCACHE_ARG |
4814 | $LTO_ARG | ||
4809 | 4815 | ||
4810 | CONFIGURE_OPTIONS=${cmdline} | 4816 | CONFIGURE_OPTIONS=${cmdline} |
4811 | 4817 | ||