Re: [PATCH v4 0/4] tools/build: Allow versioning of all LLVM tools

From: Namhyung Kim

Date: Mon Jul 27 2026 - 13:27:23 EST


On Wed, 15 Jul 2026 15:53:47 +0100, James Clark wrote:
> I ran into the build issue mentioned in the first commit, because using
> an option like LLVM=-15 is a documented way to build [1], but only
> some of the LLVM tools defined in tools/ support this.
>
> After fixing that, a lot of other tidyups fell out. I didn't go too far,
> for example some selftests include tools/testing/selftests/lib.mk which
> reimplements some of the LLVM_SUFFIX stuff, but other selftests include
> tools/scripts/Makefile.include and I stopped before touching the former.
> Some other non build scripts hard code toolchains and I didn't touch
> those either, this change is only focused on things that already
> include Makefile.include.
>
> [...]
Applied to perf-tools-next, thanks!

Best regards,
Namhyung