diff options
author | hexcoder- <heiko@hexco.de> | 2020-03-18 22:55:14 +0100 |
---|---|---|
committer | hexcoder- <heiko@hexco.de> | 2020-03-18 22:55:14 +0100 |
commit | 94a4cc8415e21416edadffed25c53bd5fe3e1d9e (patch) | |
tree | abbec67cb8dc974a0a803314e883f43ccbfbae78 /llvm_mode | |
parent | a5e747af14ee89ea7d8f98f782df96d02ee68063 (diff) | |
download | afl++-94a4cc8415e21416edadffed25c53bd5fe3e1d9e.tar.gz |
Makefiles: prefer POSIX 'type' over 'which' for checking
Diffstat (limited to 'llvm_mode')
-rw-r--r-- | llvm_mode/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm_mode/Makefile b/llvm_mode/Makefile index d975c300..af7e67a9 100644 --- a/llvm_mode/Makefile +++ b/llvm_mode/Makefile @@ -220,13 +220,13 @@ 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 ) + @type $(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 @echo "[*] Checking for working '$(CC)'..." - @which $(CC) >/dev/null 2>&1 || ( echo "[-] Oops, can't find '$(CC)'. Make sure that it's in your \$$PATH (or set \$$CC and \$$CXX)."; exit 1 ) + @type $(CC) >/dev/null 2>&1 || ( echo "[-] Oops, can't find '$(CC)'. Make sure that it's in your \$$PATH (or set \$$CC and \$$CXX)."; exit 1 ) @echo "[*] Checking for matching versions of '$(CC)' and '$(LLVM_CONFIG)'" ifneq "$(CLANGVER)" "$(LLVMVER)" @echo "[!] WARNING: we have llvm-config version $(LLVMVER) and a clang version $(CLANGVER)" |