diff options
author | van Hauser <vh@thc.org> | 2020-08-21 10:50:06 +0200 |
---|---|---|
committer | van Hauser <vh@thc.org> | 2020-08-21 10:50:06 +0200 |
commit | 85a4c5e7248cb4073c7396e0c80306bdfed58f86 (patch) | |
tree | 3d8b0ceddf45ca283dd1d922720163ca62fb9542 | |
parent | 182b8b3e142814ac865396f8a66453f071d8a2d6 (diff) | |
download | afl++-85a4c5e7248cb4073c7396e0c80306bdfed58f86.tar.gz |
only compile SanitizerCoverage for LTO
-rw-r--r-- | llvm_mode/GNUmakefile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm_mode/GNUmakefile b/llvm_mode/GNUmakefile index 5d938469..702c2c08 100644 --- a/llvm_mode/GNUmakefile +++ b/llvm_mode/GNUmakefile @@ -274,7 +274,7 @@ ifeq "$(TEST_MMAP)" "1" LDFLAGS += -Wno-deprecated-declarations endif - PROGS = ../afl-clang-fast ../afl-llvm-pass.so ../afl-ld-lto ../afl-llvm-lto-instrumentlist.so ../afl-llvm-lto-instrumentation.so ../libLLVMInsTrim.so ../afl-llvm-rt.o ../afl-llvm-rt-32.o ../afl-llvm-rt-64.o ../compare-transform-pass.so ../split-compares-pass.so ../split-switches-pass.so ../cmplog-routines-pass.so ../cmplog-instructions-pass.so ../SanitizerCoverageLTO.so +PROGS = ../afl-clang-fast ../afl-llvm-pass.so ../afl-ld-lto ../afl-llvm-lto-instrumentlist.so ../afl-llvm-lto-instrumentation.so ../libLLVMInsTrim.so ../afl-llvm-rt.o ../afl-llvm-rt-32.o ../afl-llvm-rt-64.o ../compare-transform-pass.so ../split-compares-pass.so ../split-switches-pass.so ../cmplog-routines-pass.so ../cmplog-instructions-pass.so ../SanitizerCoverageLTO.so # If prerequisites are not given, warn, do not build anything, and exit with code 0 ifeq "$(LLVMVER)" "" @@ -364,7 +364,9 @@ ifeq "$(LLVM_LTO)" "1" endif ../SanitizerCoverageLTO.so: SanitizerCoverageLTO.so.cc +ifeq "$(LLVM_LTO)" "1" $(CXX) $(CLANG_CPPFL) -Wno-writable-strings -fno-rtti -fPIC -std=$(LLVM_STDCXX) -shared $< -o $@ $(CLANG_LFL) afl-llvm-common.o +endif ../afl-llvm-lto-instrumentation.so: afl-llvm-lto-instrumentation.so.cc afl-llvm-common.o ifeq "$(LLVM_LTO)" "1" |