diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2021-03-18 00:28:17 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-18 00:28:17 +0100 |
| commit | 1839d1d57d5f4292eeadb419bc0c1e92fa9b478a (patch) | |
| tree | 28f5a4d7b7c985a5f6ec77b1d2ee24cf0a901f71 | |
| parent | 22a9582ca22869df08118c57d32620857e723c7b (diff) | |
| parent | 9a3e23fed212efcac3b7728ef2cef598feb078c6 (diff) | |
| download | rust-1839d1d57d5f4292eeadb419bc0c1e92fa9b478a.tar.gz rust-1839d1d57d5f4292eeadb419bc0c1e92fa9b478a.zip | |
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).
| -rw-r--r-- | compiler/rustc_target/src/spec/riscv64gc_unknown_none_elf.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_target/src/spec/riscv64gc_unknown_none_elf.rs b/compiler/rustc_target/src/spec/riscv64gc_unknown_none_elf.rs index 33a785fdfee..aa823b13fdd 100644 --- a/compiler/rustc_target/src/spec/riscv64gc_unknown_none_elf.rs +++ b/compiler/rustc_target/src/spec/riscv64gc_unknown_none_elf.rs @@ -11,6 +11,7 @@ pub fn target() -> Target { options: TargetOptions { linker_flavor: LinkerFlavor::Lld(LldFlavor::Ld), linker: Some("rust-lld".to_string()), + llvm_abiname: "lp64d".to_string(), cpu: "generic-rv64".to_string(), max_atomic_width: Some(64), atomic_cas: true, |
