about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-09-07 14:21:22 +0300
committerGitHub <noreply@github.com>2024-09-07 14:21:22 +0300
commitbc2244f027507c975f55a83a3a31466e3a92231e (patch)
tree62d9709cff393a0b0081cac738d3e25a707af0a0 /compiler/rustc_codegen_llvm/src/errors.rs
parentd6a42983e57766546db519dcd8859ba75d4eef62 (diff)
parent6e4c5c10b9b8740cecd62464c616cc82a01bc962 (diff)
downloadrust-bc2244f027507c975f55a83a3a31466e3a92231e.tar.gz
rust-bc2244f027507c975f55a83a3a31466e3a92231e.zip
Rollup merge of #129940 - liushuyu:s390x-target-features, r=RalfJung
s390x: Fix a regression related to backchain feature

In #127506, we introduced a new IBM Z-specific target feature, `backchain`.

This particular `target-feature` was available as a function-level attribute in LLVM 17 and below, so some hacks were used to avoid blowing up LLVM when querying the supported LLVM features.

This led to an unfortunate regression where `cfg!(target-feature = "backchain")` will always return true.

This pull request aims to fix this issue, and a test has been introduced to ensure it will never happen again.

Fixes #129927.

r? `@RalfJung`
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions