From 7fff3510a3dafaf1848468c77c189b701870c5ec Mon Sep 17 00:00:00 2001 From: Travis Geiselbrecht Date: Sat, 11 Jan 2025 17:23:22 -0800 Subject: [PATCH] [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. --- scripts/buildall | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/buildall b/scripts/buildall index a63107094..fc66d6cd5 100755 --- a/scripts/buildall +++ b/scripts/buildall @@ -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