summaryrefslogtreecommitdiff
path: root/fuzz/build.mk
diff options
context:
space:
mode:
Diffstat (limited to 'fuzz/build.mk')
-rw-r--r--fuzz/build.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/fuzz/build.mk b/fuzz/build.mk
index ff18d1b0c2..08bba75220 100644
--- a/fuzz/build.mk
+++ b/fuzz/build.mk
@@ -6,8 +6,12 @@
# fuzzer binaries
#
+fuzz-test-list-host =
+# Fuzzers should only be built for architectures that support sanitizers.
+ifeq ($(ARCH),amd64)
# TODO(crbug.com/911310) Fix the chromeos-ec build before adding cr50_fuzz back.
-fuzz-test-list-host = host_command_fuzz usb_pd_fuzz
+fuzz-test-list-host += host_command_fuzz usb_pd_fuzz
+endif
# For fuzzing targets libec.a is built from the ro objects and hides functions
# that collide with stdlib. The rw only objects are then linked against libec.a