diff options
author | 2024-11-01 15:59:46 -1000 | |
---|---|---|
committer | 2024-11-01 15:59:46 -1000 | |
commit | f7292c0934a848a3fc52c0926203417b5613c69c (patch) | |
tree | b8192ae4d00cef6b5faa80649c5fe5f055171623 /scripts | |
parent | Merge tag 'pci-v6.12-fixes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/pci/pci (diff) | |
parent | cfi: tweak llvm version for HAVE_CFI_ICALL_NORMALIZE_INTEGERS (diff) | |
download | wireguard-linux-f7292c0934a848a3fc52c0926203417b5613c69c.tar.xz wireguard-linux-f7292c0934a848a3fc52c0926203417b5613c69c.zip |
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
Diffstat (limited to '')
-rwxr-xr-x | scripts/rustc-llvm-version.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/rustc-llvm-version.sh b/scripts/rustc-llvm-version.sh index b6063cbe5bdc..a500d1ae3101 100755 --- a/scripts/rustc-llvm-version.sh +++ b/scripts/rustc-llvm-version.sh @@ -13,7 +13,7 @@ get_canonical_version() echo $((10000 * $1 + 100 * $2 + $3)) } -if output=$("$@" --version --verbose 2>/dev/null | grep LLVM); then +if output=$("$@" --version --verbose 2>/dev/null | grep -E 'LLVM.*[0-9]+\.[0-9]+\.[0-9]+'); then set -- $output get_canonical_version $3 else |