Skip to content

Commit

Permalink
[scripts][buildall] hard set WERROR=0 if -e not passed
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
travisg committed Jan 12, 2025
1 parent 6747010 commit 7fff351
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/buildall
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7fff351

Please sign in to comment.