Skip to content

Commit

Permalink
Add missing CFLAGS to instrument things for fuzzers. (project-chip#35082
Browse files Browse the repository at this point in the history
)

-fno-sanitize-coverage=pc-table is added since we are already using
inline-8bit-counters and trace-cmp to provide instrumentation for the
fuzzers. It also helps reduce memory usage and improve fuzzer performance.
  • Loading branch information
bzbarsky-apple authored and PeterC1965 committed Aug 28, 2024
1 parent b83ff15 commit c5186a2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build/config/compiler/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,8 @@ declare_args() {
config("sanitize_address") {
defines = []
cflags = [
"-fsanitize-coverage=inline-8bit-counters,trace-cmp",
"-fno-sanitize-coverage=pc-table",
"-fsanitize=address",
"-fno-omit-frame-pointer",
]
Expand Down

0 comments on commit c5186a2

Please sign in to comment.