diff options
author | Allen Webb <allenwebb@google.com> | 2018-12-05 16:07:49 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-12-11 13:00:58 -0800 |
commit | 24d29fb0f5579a18846f2729d40102da9ce0b1b9 (patch) | |
tree | 9c8a779a9417ba774d807a794296e070ecd9cc70 /Makefile.rules | |
parent | e28470f82d0b7da30db435bd451cb3beeb79aa71 (diff) | |
download | chrome-ec-24d29fb0f5579a18846f2729d40102da9ce0b1b9.tar.gz |
Makefiles: Add support for MSAN and UBSAN.
This adds support for building fuzz targets with memory and undefined
behavior sanitizers.
BRANCH=None
BUG=chromium:911310
TEST=USE="ubsan fuzzer" ./build_packages \
--board=amd64-generic --skip_chroot_upgrade chromeos-ec &&
(cd ../platform/ec && unset BOARD && make -j buildall
buildfuzztests)
Change-Id: Ic7f4c1d7fcc1f6347f091b98567167066787cb9c
Signed-off-by: Allen Webb <allenwebb@google.com>
Reviewed-on: https://chromium-review.googlesource.com/1364326
Reviewed-by: Manoj Gupta <manojgupta@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Diffstat (limited to 'Makefile.rules')
-rw-r--r-- | Makefile.rules | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile.rules b/Makefile.rules index e3d6e3164a..5a7ac71688 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -344,7 +344,8 @@ $(fuzz-test-targets): host-%: $(call quiet,host_test,BUILD ) .PHONY: buildfuzztests -buildfuzztests: TEST_FLAG=TEST_FUZZ=y TEST_ASAN=y +buildfuzztests: TEST_FLAG=TEST_FUZZ=y TEST_ASAN=$(TEST_ASAN) \ + TEST_MSAN=$(TEST_MSAN) TEST_UBSAN=$(TEST_UBSAN) buildfuzztests: $(fuzz-test-targets) $(out)/libec.a: $(ro-objs) |