summaryrefslogtreecommitdiff
path: root/util/abuild
diff options
context:
space:
mode:
authorMartin Roth <martinroth@google.com>2019-02-27 11:40:33 -0700
committerPatrick Georgi <pgeorgi@google.com>2019-02-27 19:33:43 +0000
commit3361120bc879c218a5107d2ff59255af0b07c97e (patch)
tree5b8e6ac00fcb18c5776aa36825aa6b6b98095a74 /util/abuild
parent97278939fff8c7c572a373f3f7a515be193785bd (diff)
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>
Diffstat (limited to 'util/abuild')
-rwxr-xr-xutil/abuild/abuild1
1 files changed, 1 insertions, 0 deletions
diff --git a/util/abuild/abuild b/util/abuild/abuild
index d32b16d922..abfedba614 100755
--- a/util/abuild/abuild
+++ b/util/abuild/abuild
@@ -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"