diff options
author | Christian Holler (:decoder) <choller@mozilla.com> | 2023-04-28 11:35:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-28 11:35:22 +0200 |
commit | e956f23a77b776a5c11344889503c833adbf1052 (patch) | |
tree | cc59c9a923ec09ffc43daa345d580da9dceac95b /GNUmakefile.llvm | |
parent | 41b0fe7280372031753fc5f11b9a03b214189155 (diff) | |
download | afl++-e956f23a77b776a5c11344889503c833adbf1052.tar.gz |
Source Code Coverage support for Nyx (Part 1) (#1720)
* Additional source code reformatting in afl-compiler-rt * Add source code coverage support to afl-compiler-rt (for use with Nyx)
Diffstat (limited to 'GNUmakefile.llvm')
-rw-r--r-- | GNUmakefile.llvm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/GNUmakefile.llvm b/GNUmakefile.llvm index c1b006ba..2bb4e7f8 100644 --- a/GNUmakefile.llvm +++ b/GNUmakefile.llvm @@ -274,6 +274,11 @@ ifndef LLVM_DEBUG CFLAGS_SAFE += -Wno-deprecated endif +ifdef CODE_COVERAGE + override CFLAGS_SAFE += -D__AFL_CODE_COVERAGE=1 + override LDFLAGS += -ldl +endif + override CFLAGS += $(CFLAGS_SAFE) ifdef AFL_TRACE_PC |