From 3ce5efc44b9d3e41d2928553fee2e51681c955d2 Mon Sep 17 00:00:00 2001 From: hexcoder- Date: Sun, 29 Mar 2020 09:48:01 +0200 Subject: llvm_mode/Makefile: replace lexical version comparison with a numerical one --- llvm_mode/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit 1.4.1