mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
build: Add advanced option to treat all warnings as errors.
Change-Id: I235f93d72bfc33243454edd04e45805b5c795f17
This commit is contained in:
parent
94d6265df0
commit
e1bed147a3
1 changed files with 7 additions and 2 deletions
9
tools/configure
vendored
9
tools/configure
vendored
|
@ -953,8 +953,9 @@ whichadvanced () {
|
||||||
interact=1
|
interact=1
|
||||||
echo ""
|
echo ""
|
||||||
printf "Enter your developer options (press only enter when done)\n\
|
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\
|
(D)EBUG, (L)ogf, Boot(c)hart, (S)imulator, (P)rofiling, (V)oice, (U)SB Serial,\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 "
|
(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
|
if [ "$modelname" = "iaudiom5" ]; then
|
||||||
printf ", (F)M radio MOD"
|
printf ", (F)M radio MOD"
|
||||||
fi
|
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"
|
echo "LTO build enabled"
|
||||||
LTO_ARG="export USE_LTO=y"
|
LTO_ARG="export USE_LTO=y"
|
||||||
;;
|
;;
|
||||||
|
[Ee])
|
||||||
|
echo "Treating all warnings as errors"
|
||||||
|
GCCOPTS="$GCCOPTS -Werror"
|
||||||
|
;;
|
||||||
"") # Match enter press when finished with advanced options
|
"") # Match enter press when finished with advanced options
|
||||||
cont=0
|
cont=0
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue