diff options
| author | WANG Rui <wangrui@loongson.cn> | 2025-08-08 21:59:51 +0800 |
|---|---|---|
| committer | WANG Rui <wangrui@loongson.cn> | 2025-08-09 13:54:09 +0800 |
| commit | 0246245420bbbb378db020c0492561cf701165cd (patch) | |
| tree | fd874fb7a4824d396bcdae13074b54748f15a22f /compiler/rustc_codegen_llvm/src | |
| parent | 2886b36df4a646dd8d82fb65bf0c9d8d96c1f71a (diff) | |
| download | rust-0246245420bbbb378db020c0492561cf701165cd.tar.gz rust-0246245420bbbb378db020c0492561cf701165cd.zip | |
rustc_target: Add the `32s` target feature for LoongArch
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/llvm_util.rs | 1 |
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 3b290e5a129..5c463555406 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, ( |
