summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 232f0cd6de..dabe3e9b20 100644
--- a/Makefile
+++ b/Makefile
@@ -44,6 +44,12 @@ BOOTBLOCK ?=
# the EC image (if no touchpad firmware is provided, just output blank hashes).
TOUCHPAD_FW ?=
+# If TEST_FUZZ is set make sure at least one sanitizer is enabled.
+ifeq ($(TEST_FUZZ)_$(TEST_ASAN)$(TEST_MSAN)$(TEST_UBSAN),y_)
+$(warning No sanitizer was specified defaulting to address sanitization.)
+override TEST_ASAN:=y
+endif
+
include Makefile.toolchain
# Define the traditional first target. The dependencies of this are near the