Skip to content

Commit 99c45b8

Browse files
committed
Update target fns to latest main
1 parent 78b968d commit 99c45b8

File tree

3 files changed

+21
-3
lines changed

3 files changed

+21
-3
lines changed

compiler/rustc_target/src/spec/targets/riscv32e_unknown_none_elf.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
use crate::spec::{Cc, LinkerFlavor, Lld, PanicStrategy, RelocModel, Target, TargetOptions};
22

3-
pub fn target() -> Target {
3+
pub(crate) fn target() -> Target {
44
Target {
55
// The below `data_layout` is explicitly specified by the ilp32e ABI in LLVM. See also
66
// `self.options.llvm_abiname`.
77
data_layout: "e-m:e-p:32:32-i64:64-n32-S32".into(),
88
llvm_target: "riscv32".into(),
9+
metadata: crate::spec::TargetMetadata {
10+
description: Some("Bare RISC-V (RV32E ISA)".into()),
11+
tier: Some(3),
12+
host_tools: Some(false),
13+
std: Some(false),
14+
},
915
pointer_width: 32,
1016
arch: "riscv32".into(),
1117

compiler/rustc_target/src/spec/targets/riscv32em_unknown_none_elf.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
use crate::spec::{Cc, LinkerFlavor, Lld, PanicStrategy, RelocModel, Target, TargetOptions};
22

3-
pub fn target() -> Target {
3+
pub(crate) fn target() -> Target {
44
Target {
55
// The below `data_layout` is explicitly specified by the ilp32e ABI in LLVM. See also
66
// `self.options.llvm_abiname`.
77
data_layout: "e-m:e-p:32:32-i64:64-n32-S32".into(),
88
llvm_target: "riscv32".into(),
9+
metadata: crate::spec::TargetMetadata {
10+
description: Some("Bare RISC-V (RV32EM ISA)".into()),
11+
tier: Some(3),
12+
host_tools: Some(false),
13+
std: Some(false),
14+
},
915
pointer_width: 32,
1016
arch: "riscv32".into(),
1117

compiler/rustc_target/src/spec/targets/riscv32emc_unknown_none_elf.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
use crate::spec::{Cc, LinkerFlavor, Lld, PanicStrategy, RelocModel, Target, TargetOptions};
22

3-
pub fn target() -> Target {
3+
pub(crate) fn target() -> Target {
44
Target {
55
// The below `data_layout` is explicitly specified by the ilp32e ABI in LLVM. See also
66
// `self.options.llvm_abiname`.
77
data_layout: "e-m:e-p:32:32-i64:64-n32-S32".into(),
88
llvm_target: "riscv32".into(),
9+
metadata: crate::spec::TargetMetadata {
10+
description: Some("Bare RISC-V (RV32EMC ISA)".into()),
11+
tier: Some(3),
12+
host_tools: Some(false),
13+
std: Some(false),
14+
},
915
pointer_width: 32,
1016
arch: "riscv32".into(),
1117

0 commit comments

Comments
 (0)