Skip to content

Commit f7292c0

Browse files
committed
Merge tag 'rust-fixes-6.12-3' of https://github.com/Rust-for-Linux/linux
Pull rust fixes from Miguel Ojeda: "Toolchain and infrastructure: - Avoid build errors with old 'rustc's without LLVM patch version (important since it impacts people that do not even enable Rust) - Update LLVM version for 'HAVE_CFI_ICALL_NORMALIZE_INTEGERS' in 'depends on' condition (the fix was eventually backported rather than land in LLVM 19)" * tag 'rust-fixes-6.12-3' of https://github.com/Rust-for-Linux/linux: cfi: tweak llvm version for HAVE_CFI_ICALL_NORMALIZE_INTEGERS kbuild: rust: avoid errors with old `rustc`s without LLVM patch version
2 parents 05b9266 + 2313ab7 commit f7292c0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

arch/Kconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -855,14 +855,14 @@ config HAVE_CFI_ICALL_NORMALIZE_INTEGERS_CLANG
855855
def_bool y
856856
depends on $(cc-option,-fsanitize=kcfi -fsanitize-cfi-icall-experimental-normalize-integers)
857857
# With GCOV/KASAN we need this fix: https://github.com/llvm/llvm-project/pull/104826
858-
depends on CLANG_VERSION >= 190000 || (!GCOV_KERNEL && !KASAN_GENERIC && !KASAN_SW_TAGS)
858+
depends on CLANG_VERSION >= 190103 || (!GCOV_KERNEL && !KASAN_GENERIC && !KASAN_SW_TAGS)
859859

860860
config HAVE_CFI_ICALL_NORMALIZE_INTEGERS_RUSTC
861861
def_bool y
862862
depends on HAVE_CFI_ICALL_NORMALIZE_INTEGERS_CLANG
863863
depends on RUSTC_VERSION >= 107900
864864
# With GCOV/KASAN we need this fix: https://github.com/rust-lang/rust/pull/129373
865-
depends on (RUSTC_LLVM_VERSION >= 190000 && RUSTC_VERSION >= 108200) || \
865+
depends on (RUSTC_LLVM_VERSION >= 190103 && RUSTC_VERSION >= 108200) || \
866866
(!GCOV_KERNEL && !KASAN_GENERIC && !KASAN_SW_TAGS)
867867

868868
config CFI_PERMISSIVE

scripts/rustc-llvm-version.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ get_canonical_version()
1313
echo $((10000 * $1 + 100 * $2 + $3))
1414
}
1515

16-
if output=$("$@" --version --verbose 2>/dev/null | grep LLVM); then
16+
if output=$("$@" --version --verbose 2>/dev/null | grep -E 'LLVM.*[0-9]+\.[0-9]+\.[0-9]+'); then
1717
set -- $output
1818
get_canonical_version $3
1919
else

0 commit comments

Comments
 (0)