1
0
Fork 0
forked from len0rd/rockbox

build: Add advanced option to treat all warnings as errors.

Change-Id: I235f93d72bfc33243454edd04e45805b5c795f17
This commit is contained in:
Solomon Peachy 2024-10-12 10:33:42 -04:00
parent 94d6265df0
commit e1bed147a3

9
tools/configure vendored
View file

@ -953,8 +953,9 @@ whichadvanced () {
interact=1
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, LTO (B)uild "
(D)EBUG, (L)ogf, Boot(c)hart, (S)imulator, (P)rofiling, (V)oice, (U)SB Serial,\n\
(W)in32 crosscompile, Win(6)4 crosscompile, (T)est plugins, (O)mit plugins, \n\
S(m)all C lib, Logf to Ser(i)al port, LTO (B)uild, (E)rror on warnings"
if [ "$modelname" = "iaudiom5" ]; then
printf ", (F)M radio MOD"
fi
@ -1057,6 +1058,10 @@ Win(6)4 crosscompile, (T)est plugins, (O)mit plugins, S(m)all C lib, Logf to Ser
echo "LTO build enabled"
LTO_ARG="export USE_LTO=y"
;;
[Ee])
echo "Treating all warnings as errors"
GCCOPTS="$GCCOPTS -Werror"
;;
"") # Match enter press when finished with advanced options
cont=0
;;