diff options
author | Allen Webb <allenwebb@google.com> | 2018-12-10 15:10:19 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-12-19 01:12:52 -0800 |
commit | a6f0a7e96c6fe9da398f7db5004d7d2b9c00e3e3 (patch) | |
tree | 85d0ed1af00b07b0f412b58cd588e70188c2ed7a /fuzz | |
parent | 4790392940e3b70a843274e1acb952e8f22825f6 (diff) | |
download | chrome-ec-a6f0a7e96c6fe9da398f7db5004d7d2b9c00e3e3.tar.gz |
Makefile.rules: Add buildfuzztests to buildall.
This incorporates the fuzz targets into buildall and adds a quick
sanity check to each fuzz target to make sure it exits successfully for
an empty input.
This adds roughly 5.88 seconds to "make -j buildall" (This includes an
addtionally target that will be enabled in a later CL).
time make -j buildall # BEFORE
real 1m19.519s
user 23m9.220s
sys 5m1.690s
time make -j buildall # AFTER
real 1m25.399s
user 23m35.753s
sys 5m12.609s
BRANCH=None
BUG=None
TEST=make -j buildall
Change-Id: Ib77a57297ee896569c509d0c8c998552d2a3a76c
Signed-off-by: Allen Webb <allenwebb@google.com>
Reviewed-on: https://chromium-review.googlesource.com/1370934
Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
Diffstat (limited to 'fuzz')
-rw-r--r-- | fuzz/build.mk | 6 |
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 |