From 5567e5072ec2dee1e2f62527f738ba54bd1eb027 Mon Sep 17 00:00:00 2001 From: Dan Austin Date: Wed, 19 Apr 2017 10:56:45 -0700 Subject: [PATCH] Update fuzz_test makefile. Update the fuzz_test makefile to link against the new libFuzzer library and update the coverage flags to the new version. Test: built a fuzzer and verified correct linking. Change-Id: Ie6e6da9a202a258abf805dbdc8cdd3490fcb2406 --- core/fuzz_test.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/fuzz_test.mk b/core/fuzz_test.mk index f6d6e9ad8..4d41871dd 100644 --- a/core/fuzz_test.mk +++ b/core/fuzz_test.mk @@ -8,8 +8,8 @@ ifdef LOCAL_SDK_VERSION $(error $(LOCAL_PATH): $(LOCAL_MODULE): NDK fuzz tests are not supported.) endif -LOCAL_CFLAGS += -fsanitize-coverage=edge,indirect-calls,8bit-counters,trace-cmp -LOCAL_STATIC_LIBRARIES += libLLVMFuzzer +LOCAL_CFLAGS += -fsanitize-coverage=trace-pc-guard +LOCAL_STATIC_LIBRARIES += libFuzzer ifdef LOCAL_MODULE_PATH $(error $(LOCAL_PATH): Do not set LOCAL_MODULE_PATH when building test $(LOCAL_MODULE))