build: Update fuzz tests for deprecated clang args

Clang has deprecated the option -fsanitize-coverage=trace-pc-guard
for use with fuzzing.

Change-Id: I7fe5da0f57ab44110208d098858b786450a0a5e7
Signed-off-by: Greg Tucker <greg.b.tucker@intel.com>
This commit is contained in:
Greg Tucker 2020-12-04 14:49:51 -07:00
parent 2df39cf5f1
commit 600d8d8f77

View File

@ -163,9 +163,10 @@ $(all_perf_tests): % : %.c $(lib_name)
$(sort $(notdir $(examples))): % : %.c $(lib_name)
$(sort $(notdir $(other_tests))): % : %.c $(lib_name)
$(all_llvm_fuzz_tests): FUZZLINK = -lFuzzer
$(all_llvm_fuzz_tests): CFLAGS += -fsanitize-coverage=trace-pc-guard -fsanitize=address
$(all_llvm_fuzz_tests): CXXFLAGS += -fsanitize-coverage=trace-pc-guard -fsanitize=address
fuzz_args = -fsanitize=fuzzer,address
$(all_llvm_fuzz_tests): FUZZLINK = $(fuzz_args)
$(all_llvm_fuzz_tests): CFLAGS += $(fuzz_args)
$(all_llvm_fuzz_tests): CXXFLAGS += $(fuzz_args)
$(all_llvm_fuzz_tests): % : %.o $(lib_name)
$(CXX) $(CXXFLAGS) $^ $(LDLIBS) $(FUZZLINK) -o $@