aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2021-11-12 13:15:35 +0100
committerFelix Fietkau <nbd@nbd.name>2021-11-12 13:15:44 +0100
commit959a0308e5ac3af5a27fc5c401e8e11b5d316c6f (patch)
tree7a32396d12ef1d61f4bd870da4dcc356646f03cd
parent9224ddf72d0fb1b1fb6a47055efb57dd36b0155d (diff)
downloadupstream-959a0308e5ac3af5a27fc5c401e8e11b5d316c6f.tar.gz
upstream-959a0308e5ac3af5a27fc5c401e8e11b5d316c6f.tar.bz2
upstream-959a0308e5ac3af5a27fc5c401e8e11b5d316c6f.zip
include/bpf.mk: fix typo in clang version check
Signed-off-by: Felix Fietkau <nbd@nbd.name>
-rw-r--r--include/bpf.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/bpf.mk b/include/bpf.mk
index 967de7a172..d9f1153cba 100644
--- a/include/bpf.mk
+++ b/include/bpf.mk
@@ -64,7 +64,7 @@ BPF_CFLAGS := \
-O2 -emit-llvm -Xclang -disable-llvm-passes
ifeq ($(DUMP),)
- CLANG_VER:=$(shell clang -dM -E - < /dev/null | grep __clang_major__ | cut -d' ' -f3)
+ CLANG_VER:=$(shell $(CLANG) -dM -E - < /dev/null | grep __clang_major__ | cut -d' ' -f3)
CLANG_VER_VALID:=$(shell [ "$(CLANG_VER)" -ge "$(CLANG_MIN_VER)" ] && echo 1 )
ifeq ($(CLANG_VER_VALID),)
$(error ERROR: LLVM/clang version too old. Minimum required: $(CLANG_MIN_VER), found: $(CLANG_VER))