Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 0434013

Browse files
committedMar 12, 2025
Fix RISC-V VxWorks LLVM target triples
The targets used the plain `$ARCH` triple, which LLVM normalizes to `$ARCH-unknown-unknown`, which is inconsistent with the the other VxWorks targets which all use `$ARCH-unknown-linux-gnu$ABI`.
1 parent ebf0cf7 commit 0434013

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎compiler/rustc_target/src/spec/targets/riscv32_wrs_vxworks.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use crate::spec::{StackProbeType, Target, TargetMetadata, TargetOptions, base};
22

33
pub(crate) fn target() -> Target {
44
Target {
5-
llvm_target: "riscv32".into(),
5+
llvm_target: "riscv32-unknown-linux-gnu".into(),
66
metadata: TargetMetadata {
77
description: None,
88
tier: Some(3),

‎compiler/rustc_target/src/spec/targets/riscv64_wrs_vxworks.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use crate::spec::{StackProbeType, Target, TargetMetadata, TargetOptions, base};
22

33
pub(crate) fn target() -> Target {
44
Target {
5-
llvm_target: "riscv64".into(),
5+
llvm_target: "riscv64-unknown-linux-gnu".into(),
66
metadata: TargetMetadata {
77
description: None,
88
tier: Some(3),

0 commit comments

Comments
 (0)
Failed to load comments.