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

Commit 3b14526

Browse files
committed
Fill out target-spec metadata for all targets
Complete the metadata fields for all targets. Cargo will depend on this for checking whether a given target supports building the standard library.
1 parent d68fe4e commit 3b14526

File tree

228 files changed

+903
-887
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

228 files changed

+903
-887
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ pub fn target() -> Target {
1616
// correctly, we do too.
1717
llvm_target: macos_llvm_target(arch).into(),
1818
metadata: crate::spec::TargetMetadata {
19-
description: None,
20-
tier: None,
21-
host_tools: None,
22-
std: None,
19+
description: Some("ARM64 macOS (11.0+, Big Sur+)".into()),
20+
tier: Some(2),
21+
host_tools: Some(true),
22+
std: Some(true),
2323
},
2424
pointer_width: 64,
2525
data_layout: "e-m:o-i64:64-i128:128-n32:64-S128-Fn32".into(),

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ pub fn target() -> Target {
1313
// MACH-O commands, so we do too.
1414
llvm_target: ios_llvm_target(arch).into(),
1515
metadata: crate::spec::TargetMetadata {
16-
description: None,
17-
tier: None,
18-
host_tools: None,
19-
std: None,
16+
description: Some("ARM64 iOS".into()),
17+
tier: Some(2),
18+
host_tools: Some(false),
19+
std: Some(true),
2020
},
2121
pointer_width: 64,
2222
data_layout: "e-m:o-i64:64-i128:128-n32:64-S128-Fn32".into(),

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ pub fn target() -> Target {
99
Target {
1010
llvm_target: mac_catalyst_llvm_target(arch).into(),
1111
metadata: crate::spec::TargetMetadata {
12-
description: None,
13-
tier: None,
14-
host_tools: None,
15-
std: None,
12+
description: Some("Apple Catalyst on ARM64".into()),
13+
tier: Some(3),
14+
host_tools: Some(false),
15+
std: Some(true),
1616
},
1717
pointer_width: 64,
1818
data_layout: "e-m:o-i64:64-i128:128-n32:64-S128-Fn32".into(),

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ pub fn target() -> Target {
1313
// MACH-O commands, so we do too.
1414
llvm_target: ios_sim_llvm_target(arch).into(),
1515
metadata: crate::spec::TargetMetadata {
16-
description: None,
17-
tier: None,
18-
host_tools: None,
19-
std: None,
16+
description: Some("Apple iOS Simulator on ARM64".into()),
17+
tier: Some(2),
18+
host_tools: Some(false),
19+
std: Some(true),
2020
},
2121
pointer_width: 64,
2222
data_layout: "e-m:o-i64:64-i128:128-n32:64-S128-Fn32".into(),

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ pub fn target() -> Target {
66
Target {
77
llvm_target: tvos_llvm_target(arch).into(),
88
metadata: crate::spec::TargetMetadata {
9-
description: None,
10-
tier: None,
11-
host_tools: None,
12-
std: None,
9+
description: Some("ARM64 tvOS".into()),
10+
tier: Some(3),
11+
host_tools: Some(false),
12+
std: Some(true),
1313
},
1414
pointer_width: 64,
1515
data_layout: "e-m:o-i64:64-i128:128-n32:64-S128-Fn32".into(),

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ pub fn target() -> Target {
66
Target {
77
llvm_target: tvos_sim_llvm_target(arch).into(),
88
metadata: crate::spec::TargetMetadata {
9-
description: None,
10-
tier: None,
11-
host_tools: None,
12-
std: None,
9+
description: Some("ARM64 tvOS Simulator".into()),
10+
tier: Some(3),
11+
host_tools: Some(false),
12+
std: Some(true),
1313
},
1414
pointer_width: 64,
1515
data_layout: "e-m:o-i64:64-i128:128-n32:64-S128-Fn32".into(),

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ pub fn target() -> Target {
66
Target {
77
llvm_target: "aarch64-apple-watchos".into(),
88
metadata: crate::spec::TargetMetadata {
9-
description: None,
10-
tier: None,
11-
host_tools: None,
12-
std: None,
9+
description: Some("ARM64 Apple WatchOS".into()),
10+
tier: Some(3),
11+
host_tools: Some(false),
12+
std: Some(true),
1313
},
1414
pointer_width: 64,
1515
data_layout: "e-m:o-i64:64-i128:128-n32:64-S128-Fn32".into(),

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ pub fn target() -> Target {
1010
// MACH-O commands, so we do too.
1111
llvm_target: watchos_sim_llvm_target(arch).into(),
1212
metadata: crate::spec::TargetMetadata {
13-
description: None,
14-
tier: None,
15-
host_tools: None,
16-
std: None,
13+
description: Some("ARM64 Apple WatchOS Simulator".into()),
14+
tier: Some(3),
15+
host_tools: Some(false),
16+
std: Some(true),
1717
},
1818
pointer_width: 64,
1919
data_layout: "e-m:o-i64:64-i128:128-n32:64-S128-Fn32".into(),

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ pub fn target() -> Target {
55
Target {
66
llvm_target: "aarch64_be-unknown-linux-gnu".into(),
77
metadata: crate::spec::TargetMetadata {
8-
description: None,
9-
tier: None,
10-
host_tools: None,
11-
std: None,
8+
description: Some("ARM64 Linux (big-endian)".into()),
9+
tier: Some(3),
10+
host_tools: Some(true),
11+
std: Some(true),
1212
},
1313
pointer_width: 64,
1414
data_layout: "E-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128-Fn32".into(),

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ pub fn target() -> Target {
88
Target {
99
llvm_target: "aarch64_be-unknown-linux-gnu_ilp32".into(),
1010
metadata: crate::spec::TargetMetadata {
11-
description: None,
12-
tier: None,
13-
host_tools: None,
14-
std: None,
11+
description: Some("ARM64 Linux (big-endian, ILP32 ABI)".into()),
12+
tier: Some(3),
13+
host_tools: Some(true),
14+
std: Some(true),
1515
},
1616
pointer_width: 32,
1717
data_layout: "E-m:e-p:32:32-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128-Fn32".into(),

0 commit comments

Comments
 (0)