Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 1a25580

Browse files
committed
Auto merge of rust-lang#78951 - petrochenkov:unknown, r=ehuss
rustc_target: Change os and vendor values to "none" and "unknown" for some targets Closes rust-lang#77730 r? `@ehuss`
2 parents 50d3c2a + e0a8f22 commit 1a25580

16 files changed

+19
-20
lines changed

compiler/rustc_target/src/spec/aarch64_unknown_none.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ use super::{LinkerFlavor, LldFlavor, PanicStrategy, RelocModel, Target, TargetOp
1010

1111
pub fn target() -> Target {
1212
let opts = TargetOptions {
13-
vendor: String::new(),
1413
linker_flavor: LinkerFlavor::Lld(LldFlavor::Ld),
1514
linker: Some("rust-lld".to_owned()),
1615
features: "+strict-align,+neon,+fp-armv8".to_string(),

compiler/rustc_target/src/spec/aarch64_unknown_none_softfloat.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ use super::{LinkerFlavor, LldFlavor, PanicStrategy, RelocModel, Target, TargetOp
1010

1111
pub fn target() -> Target {
1212
let opts = TargetOptions {
13-
vendor: String::new(),
1413
linker_flavor: LinkerFlavor::Lld(LldFlavor::Ld),
1514
linker: Some("rust-lld".to_owned()),
1615
features: "+strict-align,-neon,-fp-armv8".to_string(),

compiler/rustc_target/src/spec/armebv7r_none_eabi.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ pub fn target() -> Target {
1212

1313
options: TargetOptions {
1414
endian: "big".to_string(),
15-
vendor: String::new(),
1615
linker_flavor: LinkerFlavor::Lld(LldFlavor::Ld),
1716
executables: true,
1817
linker: Some("rust-lld".to_owned()),

compiler/rustc_target/src/spec/armebv7r_none_eabihf.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ pub fn target() -> Target {
1212

1313
options: TargetOptions {
1414
endian: "big".to_string(),
15-
vendor: String::new(),
1615
linker_flavor: LinkerFlavor::Lld(LldFlavor::Ld),
1716
executables: true,
1817
linker: Some("rust-lld".to_owned()),

compiler/rustc_target/src/spec/armv7a_none_eabi.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@
1010
// bare-metal binaries (the `gcc` linker has the advantage that it knows where C
1111
// libraries and crt*.o are but it's not much of an advantage here); LLD is also
1212
// faster
13-
// - `os` set to `none`. rationale: matches `thumb` targets
14-
// - `env` and `vendor` are set to an empty string. rationale: matches `thumb`
15-
// targets
1613
// - `panic_strategy` set to `abort`. rationale: matches `thumb` targets
1714
// - `relocation-model` set to `static`; also no PIE, no relro and no dynamic
1815
// linking. rationale: matches `thumb` targets
@@ -21,7 +18,6 @@ use super::{LinkerFlavor, LldFlavor, PanicStrategy, RelocModel, Target, TargetOp
2118

2219
pub fn target() -> Target {
2320
let opts = TargetOptions {
24-
vendor: String::new(),
2521
linker_flavor: LinkerFlavor::Lld(LldFlavor::Ld),
2622
linker: Some("rust-lld".to_owned()),
2723
features: "+v7,+thumb2,+soft-float,-neon,+strict-align".to_string(),

compiler/rustc_target/src/spec/armv7a_none_eabihf.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ use super::{LinkerFlavor, LldFlavor, PanicStrategy, RelocModel, Target, TargetOp
99

1010
pub fn target() -> Target {
1111
let opts = TargetOptions {
12-
vendor: String::new(),
1312
linker_flavor: LinkerFlavor::Lld(LldFlavor::Ld),
1413
linker: Some("rust-lld".to_owned()),
1514
features: "+v7,+vfp3,-d32,+thumb2,-neon,+strict-align".to_string(),

compiler/rustc_target/src/spec/armv7r_none_eabi.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ pub fn target() -> Target {
1111
arch: "arm".to_string(),
1212

1313
options: TargetOptions {
14-
vendor: String::new(),
1514
linker_flavor: LinkerFlavor::Lld(LldFlavor::Ld),
1615
executables: true,
1716
linker: Some("rust-lld".to_owned()),

compiler/rustc_target/src/spec/armv7r_none_eabihf.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ pub fn target() -> Target {
1111
arch: "arm".to_string(),
1212

1313
options: TargetOptions {
14-
vendor: String::new(),
1514
linker_flavor: LinkerFlavor::Lld(LldFlavor::Ld),
1615
executables: true,
1716
linker: Some("rust-lld".to_owned()),

compiler/rustc_target/src/spec/avr_gnu_base.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ pub fn target(target_cpu: String) -> Target {
1111
pointer_width: 16,
1212
options: TargetOptions {
1313
c_int_width: "16".to_string(),
14-
os: "unknown".to_string(),
1514
cpu: target_cpu.clone(),
1615
exe_suffix: ".elf".to_string(),
1716

compiler/rustc_target/src/spec/fuchsia_base.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ pub fn opts() -> TargetOptions {
2121

2222
TargetOptions {
2323
os: "fuchsia".to_string(),
24-
vendor: String::new(),
2524
linker_flavor: LinkerFlavor::Lld(LldFlavor::Ld),
2625
linker: Some("rust-lld".to_owned()),
2726
lld_flavor: LldFlavor::Ld,

0 commit comments

Comments
 (0)