From 3a0cad30f24217c7408ba2174792c1975dba3f66 Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Thu, 25 Jul 2019 12:33:32 +0200 Subject: util/abuild: Add --asserts flag This enables fatal asserts, which can be useful to get better diagnostics by the build tools (both compilers and static analysis.) Change-Id: I1e1653f465fe1f545878d6eec83b8645dc17d9cb Signed-off-by: Patrick Georgi Reviewed-on: https://review.coreboot.org/c/coreboot/+/34567 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Martin Roth Reviewed-by: Jacob Garber --- util/abuild/abuild | 3 +++ 1 file changed, 3 insertions(+) (limited to 'util') diff --git a/util/abuild/abuild b/util/abuild/abuild index abfedba614..d9c698e65e 100755 --- a/util/abuild/abuild +++ b/util/abuild/abuild @@ -677,6 +677,9 @@ while true ; do SCANBUILD_ARGS=${SCANBUILD_ARGS:-'-k'} configoptions="${configoptions}CONFIG_FATAL_ASSERTS=y\n" ;; + --asserts) shift + configoptions="${configoptions}CONFIG_FATAL_ASSERTS=y\n" + ;; -y|--ccache) shift customizing="${customizing}, ccache" configoptions="${configoptions}CONFIG_CCACHE=y\n" -- cgit v1.2.3