From 600d8d8f77881be6814e3d04266223f6c99a1959 Mon Sep 17 00:00:00 2001 From: Greg Tucker Date: Fri, 4 Dec 2020 14:49:51 -0700 Subject: [PATCH] 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 --- make.inc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/make.inc b/make.inc index f0a9581..7c5f042 100644 --- a/make.inc +++ b/make.inc @@ -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 $@