about summary refs log tree commit diff
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2020-03-29 09:48:01 +0200
committerDominik Maier <domenukk@gmail.com>2020-04-01 13:10:06 +0200
commit3ce5efc44b9d3e41d2928553fee2e51681c955d2 (patch)
tree8a27ecac50943e40d6df2552a95e0cfb290b2488
parent1e8c1a4c46f6518a71f659494561874034dd37a3 (diff)
downloadafl++-3ce5efc44b9d3e41d2928553fee2e51681c955d2.tar.gz
llvm_mode/Makefile: replace lexical version comparison with a numerical one
-rw-r--r--llvm_mode/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm_mode/Makefile b/llvm_mode/Makefile
index 202dcbc6..5b6fcca4 100644
--- a/llvm_mode/Makefile
+++ b/llvm_mode/Makefile
@@ -201,7 +201,7 @@ else
   TARGETS = test_shm test_deps $(PROGS) afl-clang-fast.8 test_build all_done
 endif
 
-LLVM_MIN_4_0_1 = $(shell awk 'BEGIN { exit ARGV[1] >= ARGV[2] }' $(LLVMVER) 4.0.1; echo $$?)
+LLVM_MIN_4_0_1 = $(shell awk 'function tonum(ver, a) {split(ver,a,"."); return a[1]*1000000+a[2]*1000+a[3]} BEGIN { exit tonum(ARGV[1]) >= tonum(ARGV[2]) }' $(LLVMVER) 4.0.1; echo $$?)
 
 all: $(TARGETS)