forked from openkylin/platform_build
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
This commit is contained in:
parent
c8387929d1
commit
5567e5072e
|
@ -8,8 +8,8 @@ ifdef LOCAL_SDK_VERSION
|
||||||
$(error $(LOCAL_PATH): $(LOCAL_MODULE): NDK fuzz tests are not supported.)
|
$(error $(LOCAL_PATH): $(LOCAL_MODULE): NDK fuzz tests are not supported.)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
LOCAL_CFLAGS += -fsanitize-coverage=edge,indirect-calls,8bit-counters,trace-cmp
|
LOCAL_CFLAGS += -fsanitize-coverage=trace-pc-guard
|
||||||
LOCAL_STATIC_LIBRARIES += libLLVMFuzzer
|
LOCAL_STATIC_LIBRARIES += libFuzzer
|
||||||
|
|
||||||
ifdef LOCAL_MODULE_PATH
|
ifdef LOCAL_MODULE_PATH
|
||||||
$(error $(LOCAL_PATH): Do not set LOCAL_MODULE_PATH when building test $(LOCAL_MODULE))
|
$(error $(LOCAL_PATH): Do not set LOCAL_MODULE_PATH when building test $(LOCAL_MODULE))
|
||||||
|
|
Loading…
Reference in New Issue