diff options
author | van Hauser <vh@thc.org> | 2020-08-02 11:08:47 +0200 |
---|---|---|
committer | van Hauser <vh@thc.org> | 2020-08-02 11:08:47 +0200 |
commit | 349fed3fcd9ba8dcda7764a439c95071b6a509ce (patch) | |
tree | a6179f369d199a77ea5a6e9baa5bc4d7e700ff2a | |
parent | b708cf7d45edd0297ff47b89dd95dcf5e3664a40 (diff) | |
download | afl++-349fed3fcd9ba8dcda7764a439c95071b6a509ce.tar.gz |
warn on old llvm
-rw-r--r-- | llvm_mode/GNUmakefile | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm_mode/GNUmakefile b/llvm_mode/GNUmakefile index a202fbb4..0813af34 100644 --- a/llvm_mode/GNUmakefile +++ b/llvm_mode/GNUmakefile @@ -57,13 +57,22 @@ ifeq "$(LLVM_UNSUPPORTED)" "1" $(warning llvm_mode only supports llvm versions 3.4 up to 12) endif +LLVM_TOO_OLD=1 + ifeq "$(LLVM_MAJOR)" "9" $(info [+] llvm_mode detected llvm 9, enabling neverZero implementation) + LLVM_TOO_OLD=0 endif ifeq "$(LLVM_NEW_API)" "1" $(info [+] llvm_mode detected llvm 10+, enabling neverZero implementation and c++14) LLVM_STDCXX = c++14 + LLVM_TOO_OLD=0 +endif + +ifeq "$(LLVM_TOO_OLD)" "1" + $(info [!] llvm_mode detected an old version of llvm, upgrade to at least 9 or preferable 11!) + $(shell sleep 1) endif ifeq "$(LLVM_HAVE_LTO)" "1" |