rustc_target: Add the 32s target feature for LoongArch

This commit is contained in:
WANG Rui
2025-08-08 21:59:51 +08:00
parent 2886b36df4
commit 0246245420
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,
(