[scripts][buildall] hard set WERROR=0 if -e not passed

This allows it to override the WERROR setting if, say, someone put
WERROR?=1 in their local.mk. (It's a good idea)

Note: I can't really leave WERROR enabled in the default build because
of all of the variants of compilers folks use in the wild, but I do
highly suggest folks use it locally.
This commit is contained in:
Travis Geiselbrecht
2025-01-11 17:23:22 -08:00
parent 6747010a5c
commit 7fff3510a3

View File

@@ -52,8 +52,12 @@ function log()
PROJECTS=$(echo project/*.mk | xargs -n1 basename | sed 's/\.mk//')
FAILED=""
# set the WERROR environment
if (( $WERROR )); then
export WERROR=1
else
# hard set to 0 in case local.mk tries to override it
export WERROR=0
fi
for p in $PROJECTS; do