about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
author许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com>2025-08-19 19:42:08 +0800
committerGitHub <noreply@github.com>2025-08-19 19:42:08 +0800
commitbdd3bc82c897e7bb7f5e56b78a8db5781924f779 (patch)
tree2a6b8abf0945f062e395946ba27de44d6a9f0efa /compiler/rustc_codegen_llvm/src
parentb4a88c8d07508fb72b7bf1d09d6a71884cfa5e40 (diff)
parent0246245420bbbb378db020c0492561cf701165cd (diff)
downloadrust-bdd3bc82c897e7bb7f5e56b78a8db5781924f779.tar.gz
rust-bdd3bc82c897e7bb7f5e56b78a8db5781924f779.zip
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
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
-rw-r--r--compiler/rustc_codegen_llvm/src/llvm_util.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_llvm/src/llvm_util.rs b/compiler/rustc_codegen_llvm/src/llvm_util.rs
index 28d2100f478..90f7cd43268 100644
--- a/compiler/rustc_codegen_llvm/src/llvm_util.rs
+++ b/compiler/rustc_codegen_llvm/src/llvm_util.rs
@@ -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,
         (