Skip to content

Commit 567c27a

Browse files
committed
Update to latest main
1 parent 22b8aca commit 567c27a

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,9 +1,15 @@
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
data_layout: "e-m:e-p:32:32-i64:64-n32-S128".into(),
66
llvm_target: "riscv32".into(),
7+
metadata: crate::spec::TargetMetadata {
8+
description: Some("Bare RISC-V (RV32E ISA)".into()),
9+
tier: Some(3),
10+
host_tools: Some(false),
11+
std: Some(false),
12+
},
713
pointer_width: 32,
814
arch: "riscv32".into(),
915

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,9 +1,15 @@
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
data_layout: "e-m:e-p:32:32-i64:64-n32-S128".into(),
66
llvm_target: "riscv32".into(),
7+
metadata: crate::spec::TargetMetadata {
8+
description: Some("Bare RISC-V (RV32EM ISA)".into()),
9+
tier: Some(3),
10+
host_tools: Some(false),
11+
std: Some(false),
12+
},
713
pointer_width: 32,
814
arch: "riscv32".into(),
915

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,9 +1,15 @@
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
data_layout: "e-m:e-p:32:32-i64:64-n32-S128".into(),
66
llvm_target: "riscv32".into(),
7+
metadata: crate::spec::TargetMetadata {
8+
description: Some("Bare RISC-V (RV32EMC ISA)".into()),
9+
tier: Some(3),
10+
host_tools: Some(false),
11+
std: Some(false),
12+
},
713
pointer_width: 32,
814
arch: "riscv32".into(),
915

0 commit comments

Comments
 (0)