[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user