mirror of
https://github.com/intel/isa-l.git
synced 2024-12-12 09:23:50 +01:00
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:
parent
2df39cf5f1
commit
600d8d8f77
7
make.inc
7
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 $@
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user