summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorPatrick Georgi <pgeorgi@google.com>2019-07-25 12:33:32 +0200
committerPatrick Georgi <pgeorgi@google.com>2019-07-26 11:06:29 +0000
commit3a0cad30f24217c7408ba2174792c1975dba3f66 (patch)
tree2a02a2d8353a755c96066d717aedd9fd57135fb5 /util
parentc199973f78b6284d78cc2eb79d78470a15c0350b (diff)
downloadcoreboot-3a0cad30f24217c7408ba2174792c1975dba3f66.tar.gz
coreboot-3a0cad30f24217c7408ba2174792c1975dba3f66.tar.bz2
coreboot-3a0cad30f24217c7408ba2174792c1975dba3f66.zip
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 <pgeorgi@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/34567 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Martin Roth <martinroth@google.com> Reviewed-by: Jacob Garber <jgarber1@ualberta.ca>
Diffstat (limited to 'util')
-rwxr-xr-xutil/abuild/abuild3
1 files changed, 3 insertions, 0 deletions
diff --git a/util/abuild/abuild b/util/abuild/abuild
index abfedba61467..d9c698e65e81 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"