diff options
| author | van Hauser <vh@thc.org> | 2019-12-03 01:40:41 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-12-03 01:40:41 +0100 |
| commit | 4231c498392484fd2187b9ed1dedb1ba7bc0958b (patch) | |
| tree | 366586c4ceef17998670a8c2d978869bdac64d56 /llvm_mode/Makefile | |
| parent | b0d590fef4acb4b002429e4aec195e5740122494 (diff) | |
| parent | ef2dc98773c55eb09e4c1a588fb74df58570f868 (diff) | |
| download | afl++-4231c498392484fd2187b9ed1dedb1ba7bc0958b.tar.gz | |
Merge branch 'master' into llvm_mode_build_fix
Diffstat (limited to 'llvm_mode/Makefile')
| -rw-r--r-- | llvm_mode/Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm_mode/Makefile b/llvm_mode/Makefile index 1f68e517..6c1ff176 100644 --- a/llvm_mode/Makefile +++ b/llvm_mode/Makefile @@ -41,6 +41,7 @@ LLVM_NEW_API = $(shell $(LLVM_CONFIG) --version 2>/dev/null | egrep -q '^1[0-9]' LLVM_MAJOR = $(shell $(LLVM_CONFIG) --version 2>/dev/null | sed 's/\..*//') LLVM_BINDIR = $(shell $(LLVM_CONFIG) --bindir 2>/dev/null) LLVM_STDCXX = gnu++11 +LLVM_APPLE = $(shell clang -v 2>&1 | grep -iq apple && echo 1 || echo 0) ifeq "$(LLVM_UNSUPPORTED)" "1" $(warn llvm_mode only supports versions 3.8.0 up to 9) @@ -151,7 +152,9 @@ endif test_deps: ifndef AFL_TRACE_PC @echo "[*] Checking for working 'llvm-config'..." + ifneq "$(LLVM_APPLE)" "1" @which $(LLVM_CONFIG) >/dev/null 2>&1 || ( echo "[-] Oops, can't find 'llvm-config'. Install clang or set \$$LLVM_CONFIG or \$$PATH beforehand."; echo " (Sometimes, the binary will be named llvm-config-3.5 or something like that.)"; exit 1 ) + endif else @echo "[!] Note: using -fsanitize=trace-pc mode (this will fail with older LLVM)." endif |
