[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aXE_gOfh9NwQcc8X@levanger>
Date: Wed, 21 Jan 2026 22:05:04 +0100
From: Nicolas Schier <nsc@...nel.org>
To: Thomas Weißschuh <linux@...ssschuh.net>
Cc: Nathan Chancellor <nathan@...nel.org>,
Nick Desaulniers <nick.desaulniers+lkml@...il.com>,
Bill Wendling <morbo@...gle.com>,
Justin Stitt <justinstitt@...gle.com>, linux-kbuild@...r.kernel.org,
linux-kernel@...r.kernel.org, llvm@...ts.linux.dev,
WangYuli <wangyuli@...c.io>
Subject: Re: [PATCH v2] kbuild: Reject unexpected values for LLVM=
On Wed, Jan 21, 2026 at 02:42:39PM +0100, Thomas Weißschuh wrote:
> The LLVM argument is documented to accept one of three forms:
> * a literal '1' to use the default 'clang',
> * a toolchain prefix path, ending in a trailing '/',
> * a version suffix.
>
> All other values are silently treated as '1'. If for example
> the user accidentally forgets the trailing '/' of a toolchain prefix,
> kbuild will unexpectedly and silently fall back to the system toolchain.
>
> Instead report an error if the user specified an invalid value for LLVM.
>
> Signed-off-by: Thomas Weißschuh <linux@...ssschuh.net>
> ---
> Changes in v2:
> - Add pointer to the documentation.
> - Link to v1: https://patch.msgid.link/20260112-kbuild-llvm-arg-v1-1-8e9bbdae996f@weissschuh.net
> ---
> Makefile | 2 ++
> 1 file changed, 2 insertions(+)
Reviewed-by: Nicolas Schier <nsc@...nel.org>
Tested-by: Nicolas Schier <nsc@...nel.org>
--
Nicolas
Powered by blists - more mailing lists