File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 3838
3939 - name : Build Fuzzer
4040 run : |
41+ export CC=clang
42+ export CXX=clang++
4143 fuzz_harness=$(ls -d test/fuzz/device/*/)
4244 for h in $fuzz_harness
4345 do
Original file line number Diff line number Diff line change @@ -16,9 +16,9 @@ __check_defined = \
1616
1717# -------------- Fuzz harness compiler ------------
1818
19- CC = clang
20- CXX = clang++
21- GDB = gdb
19+ CC ? = clang
20+ CXX ? = clang++
21+ GDB ? = gdb
2222OBJCOPY = objcopy
2323SIZE = size
2424MKDIR = mkdir
3434 PYTHON = python3
3535endif
3636
37+ # -------------- Fuzz harness flags ------------
38+ COVERAGE_FLAGS ?= -fsanitize-coverage=trace-pc-guard
39+ SANITIZER_FLAGS ?= -fsanitize=fuzzer \
40+ -fsanitize=address
41+
42+ CFLAGS += $(COVERAGE_FLAGS ) $(SANITIZER_FLAGS )
43+
3744# -------------- Source files and compiler flags --------------
3845
3946
@@ -42,9 +49,6 @@ INC += $(TOP)/test
4249# Compiler Flags
4350CFLAGS += \
4451 -ggdb \
45- -fsanitize=fuzzer \
46- -fsanitize=address \
47- -fsanitize=undefined \
4852 -fdata-sections \
4953 -ffunction-sections \
5054 -fno-strict-aliasing \
You can’t perform that action at this time.
0 commit comments