Rollup merge of #145099 - heiher:loong-32s, r=folkertdev

rustc_target: Add the `32s` target feature for LoongArch

LLVM: https://github.com/llvm/llvm-project/pull/139695
This commit is contained in:
许杰友 Jieyou Xu (Joe)
2025-08-19 19:42:08 +08:00
committed by GitHub
6 changed files with 14 additions and 7 deletions

View File

@@ -277,6 +277,7 @@ pub(crate) fn to_llvm_features<'a>(sess: &Session, s: &'a str) -> Option<LLVMFea
{
None
}
("loongarch32" | "loongarch64", "32s") if get_version().0 < 21 => None,
// Filter out features that are not supported by the current LLVM version
("riscv32" | "riscv64", "zacas") if get_version().0 < 20 => None,
(