diff options
| author | van Hauser <vh@thc.org> | 2020-08-13 21:27:11 +0200 |
|---|---|---|
| committer | van Hauser <vh@thc.org> | 2020-08-13 21:27:11 +0200 |
| commit | 212bb990b7579831baad70735b767dbaf89e9e89 (patch) | |
| tree | fa928bd9f9a0c8723d2db0566b1bd9352b06a1b7 /GNUmakefile | |
| parent | 8e984c2aa0100e6244fe6f215c88dd8b3bf3abc2 (diff) | |
| download | afl++-212bb990b7579831baad70735b767dbaf89e9e89.tar.gz | |
LTO: apply laf-intel+redqueen/cmplog at link time
Diffstat (limited to 'GNUmakefile')
| -rw-r--r-- | GNUmakefile | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/GNUmakefile b/GNUmakefile index fe5f8c03..f9020a90 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -97,7 +97,13 @@ ifneq "$(shell uname -m)" "x86_64" endif endif -CFLAGS ?= -O3 -funroll-loops $(CFLAGS_OPT) +ifdef DEBUG + $(info Compiling DEBUG version of binaries) + CFLAGS += -ggdb3 -O0 -Wall -Wextra -Werror +else + CFLAGS ?= -O3 -funroll-loops $(CFLAGS_OPT) +endif + override CFLAGS += -g -Wno-pointer-sign -Wno-variadic-macros -Wall -Wextra -Wpointer-arith \ -I include/ -DAFL_PATH=\"$(HELPER_PATH)\" \ -DBIN_PATH=\"$(BIN_PATH)\" -DDOC_PATH=\"$(DOC_PATH)\" @@ -305,6 +311,7 @@ help: @echo "==========================================" @echo STATIC - compile AFL++ static @echo ASAN_BUILD - compiles with memory sanitizer for debug purposes + @echo DEBUG - no optimization, -ggdb3, all warnings and -Werror @echo PROFILING - compile afl-fuzz with profiling information @echo AFL_NO_X86 - if compiling on non-intel/amd platforms @echo "==========================================" |
