util/abuild: Set fatal asserts when running scanbuild

Because coreboot's asserts aren't fatal by default, scan-build finds
problems in code that is actually protected by an assert.  This
change fixes that and allows us to add asserts to protect
against other failures.

Change-Id: I9fa605d6309bb40a9cef33b434c9256bf731f457
Signed-off-by: Martin Roth <martinroth@google.com>
Reviewed-on: https://review.coreboot.org/c/31650
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
This commit is contained in:
Martin Roth 2019-02-27 11:40:33 -07:00 committed by Patrick Georgi
parent 97278939ff
commit 3361120bc8
1 changed files with 1 additions and 0 deletions

View File

@ -675,6 +675,7 @@ while true ; do
scanbuild=true
customizing="${customizing}, scan-build"
SCANBUILD_ARGS=${SCANBUILD_ARGS:-'-k'}
configoptions="${configoptions}CONFIG_FATAL_ASSERTS=y\n"
;;
-y|--ccache) shift
customizing="${customizing}, ccache"