Skip to content

Commit 1839d1d

Browse files
authored
Rollup merge of #83231 - DieracDelta:lp64d-abi-for-riscvgc-unknown-none-elf, r=estebank
Switch riscvgc-unknown-none-elf use lp64d ABI Corrects #83229 by directly specifying the target abi in the spec in the same way as is done for the `riscv64gc-unknown-linux-gnu` target [here](https://github.com/rust-lang/rust/blob/master/compiler/rustc_target/src/spec/riscv64gc_unknown_linux_gnu.rs).
2 parents 22a9582 + 9a3e23f commit 1839d1d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/rustc_target/src/spec/riscv64gc_unknown_none_elf.rs

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ pub fn target() -> Target {
1111
options: TargetOptions {
1212
linker_flavor: LinkerFlavor::Lld(LldFlavor::Ld),
1313
linker: Some("rust-lld".to_string()),
14+
llvm_abiname: "lp64d".to_string(),
1415
cpu: "generic-rv64".to_string(),
1516
max_atomic_width: Some(64),
1617
atomic_cas: true,

0 commit comments

Comments
 (0)