From de7a14e97730905c2fee7cda5728255f1f596d04 Mon Sep 17 00:00:00 2001 From: Huang Qi Date: Sun, 1 Sep 2024 09:59:09 +0800 Subject: [PATCH] Fix LLVM ABI NAME for riscv64imac-unknown-nuttx-elf This patch fix https://github.com/rust-lang/rust/issues/129825 For the riscv64imac target, the LLVM ABI NAME should be "lp64", which is the default ABI if not specified for the riscv64imac target. --- .../src/spec/targets/riscv64imac_unknown_nuttx_elf.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/compiler/rustc_target/src/spec/targets/riscv64imac_unknown_nuttx_elf.rs b/compiler/rustc_target/src/spec/targets/riscv64imac_unknown_nuttx_elf.rs index 215c0724f91de..80d58e5baceac 100644 --- a/compiler/rustc_target/src/spec/targets/riscv64imac_unknown_nuttx_elf.rs +++ b/compiler/rustc_target/src/spec/targets/riscv64imac_unknown_nuttx_elf.rs @@ -21,7 +21,6 @@ pub fn target() -> Target { os: "nuttx".into(), linker_flavor: LinkerFlavor::Gnu(Cc::No, Lld::Yes), linker: Some("rust-lld".into()), - llvm_abiname: "lp64d".into(), cpu: "generic-rv64".into(), max_atomic_width: Some(64), features: "+m,+a,+c".into(),