]> git.ipfire.org Git - thirdparty/openwrt.git/commit
build: bpf: fix LLVM tool paths with host toolchain 18422/head
authorMatthias Schiffer <mschiffer@universe-factory.net>
Sat, 5 Apr 2025 10:23:44 +0000 (12:23 +0200)
committerRobert Marko <robimarko@gmail.com>
Wed, 9 Apr 2025 07:52:21 +0000 (09:52 +0200)
commit89f1d56a7eab7d530be4bbb5cf21dfc80b3485b1
tree7d14ceefc7f08cdf3dcb1802cf6a9a77b0f329c6
parent45f0eb106bed8868c02e0ccfb545b7e1c4279841
build: bpf: fix LLVM tool paths with host toolchain

Do not assume that the various tools like llc can be found under the
same path as clang; instead, look them up through BPF_PATH (while still
preferring ones found next to clang).

This fixes build in common setups with ccache, where clang resolves to a
path like /usr/lib/ccache/bin/clang, but no other tools can be found at
that location.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Link: https://github.com/openwrt/openwrt/pull/18422
Signed-off-by: Robert Marko <robimarko@gmail.com>
include/bpf.mk