Skip to content

Commit 20c0989

Browse files
committed
kbuild: Bump minimum version of LLVM for building the kernel to 15.0.0
s390 and x86 have required LLVM 15 since 30d17fa ("scripts/min-tool-version.sh: raise minimum clang version to 15.0.0 for s390") 7861640 ("x86/build: Raise the minimum LLVM version to 15.0.0") respectively but most other architectures allow LLVM 13.0.1 or newer. In accordance with the recent minimum supported version of GCC bump that happened in 118c40b ("kbuild: require gcc-8 and binutils-2.30") do the same for LLVM to 15.0.0. Of the supported releases of Arch Linux, Debian, Fedora, and OpenSUSE surveyed in evaluating this bump, this only leaves behind Debian Bookworm (14.0.6) and Ubuntu Jammy (14.0.0). Debian Trixie has 19.1.7 and Ubuntu Noble has 18.1.3 (so there are viable upgrade paths) or users can use apt.llvm.org, which provides even newer packages for those distributions. Reviewed-by: Kees Cook <kees@kernel.org> Acked-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Nicolas Schier <nsc@kernel.org> Link: https://lore.kernel.org/r/20250821-bump-min-llvm-ver-15-v2-1-635f3294e5f0@kernel.org Signed-off-by: Nathan Chancellor <nathan@kernel.org>
1 parent 8f5ae30 commit 20c0989

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

Documentation/process/changes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ you probably needn't concern yourself with pcmciautils.
3030
Program Minimal version Command to check the version
3131
====================== =============== ========================================
3232
GNU C 8.1 gcc --version
33-
Clang/LLVM (optional) 13.0.1 clang --version
33+
Clang/LLVM (optional) 15.0.0 clang --version
3434
Rust (optional) 1.78.0 rustc --version
3535
bindgen (optional) 0.65.1 bindgen --version
3636
GNU make 4.0 make --version

scripts/min-tool-version.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,10 @@ gcc)
2424
fi
2525
;;
2626
llvm)
27-
if [ "$SRCARCH" = s390 -o "$SRCARCH" = x86 ]; then
28-
echo 15.0.0
29-
elif [ "$SRCARCH" = loongarch ]; then
27+
if [ "$SRCARCH" = loongarch ]; then
3028
echo 18.0.0
3129
else
32-
echo 13.0.1
30+
echo 15.0.0
3331
fi
3432
;;
3533
rustc)

0 commit comments

Comments
 (0)