diff options
| author | Ha Thach <[email protected]> | 2023-01-04 13:44:33 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-01-04 13:44:33 +0700 |
| commit | 18043131d09aa38907bb7b7d75c14e8284719ce0 (patch) | |
| tree | abd34a83b267b5fe3c181f1e154fa21de4063fa7 /test | |
| parent | 549bee94add9d8f1c346bfa0fa6b25481db3f191 (diff) | |
| parent | 1dcffc655d8b42a850c8cd16cdf66caab1c9549d (diff) | |
Merge pull request #1823 from silvergasp/fix_cluster_fuzz_flags
fix(fuzz): Make sanitizer flags optional
Diffstat (limited to 'test')
| -rw-r--r-- | test/fuzz/make.mk | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/test/fuzz/make.mk b/test/fuzz/make.mk index 03254112f..6717ebc80 100644 --- a/test/fuzz/make.mk +++ b/test/fuzz/make.mk @@ -16,9 +16,9 @@ __check_defined = \ #-------------- Fuzz harness compiler ------------ -CC = clang -CXX = clang++ -GDB = gdb +CC ?= clang +CXX ?= clang++ +GDB ?= gdb OBJCOPY = objcopy SIZE = size MKDIR = mkdir @@ -34,6 +34,13 @@ else PYTHON = python3 endif +#-------------- Fuzz harness flags ------------ +COVERAGE_FLAGS ?= -fsanitize-coverage=trace-pc-guard +SANITIZER_FLAGS ?= -fsanitize=fuzzer \ + -fsanitize=address + +CFLAGS += $(COVERAGE_FLAGS) $(SANITIZER_FLAGS) + #-------------- Source files and compiler flags -------------- @@ -42,9 +49,6 @@ INC += $(TOP)/test # Compiler Flags CFLAGS += \ -ggdb \ - -fsanitize=fuzzer \ - -fsanitize=address \ - -fsanitize=undefined \ -fdata-sections \ -ffunction-sections \ -fno-strict-aliasing \ |
