Skip to content

Commit 876be73

Browse files
Tropix126max-niederman
authored andcommitted
add additional information to target spec and supporting docs
1 parent c65cfdb commit 876be73

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

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

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,29 +6,31 @@ pub(crate) fn target() -> Target {
66
Target {
77
llvm_target: "armv7a-none-eabihf".into(),
88
metadata: crate::spec::TargetMetadata {
9-
description: None,
10-
tier: None,
11-
host_tools: None,
12-
std: None,
9+
description: Some("Armv7-A Cortex-A9 VEX V5 Brain, VEXos".into()),
10+
tier: Some(3),
11+
host_tools: Some(false),
12+
std: Some(true),
1313
},
1414
pointer_width: 32,
1515
data_layout: "e-m:e-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64".into(),
1616
arch: "arm".into(),
1717
options: TargetOptions {
18+
os: "vexos".into(),
19+
vendor: "vex".into(),
20+
exe_suffix: "elf".into(),
1821
cpu: "cortex-a9".into(),
1922
abi: "eabihf".into(),
20-
linker_flavor: LinkerFlavor::Gnu(Cc::No, Lld::Yes),
23+
features: "+v7,+neon,+vfp3,+thumb2,+thumb-mode".into(),
2124
linker: Some("rust-lld".into()),
25+
linker_flavor: LinkerFlavor::Gnu(Cc::No, Lld::Yes),
2226
link_script: Some(LINK_SCRIPT.into()),
23-
features: "+v7,+thumb2,+vfp3,+neon".into(),
27+
panic_strategy: PanicStrategy::Abort,
2428
relocation_model: RelocModel::Static,
25-
disable_redzone: true,
29+
c_enum_min_bits: Some(8),
2630
max_atomic_width: Some(64),
27-
panic_strategy: PanicStrategy::Abort,
31+
disable_redzone: true,
2832
emit_debug_gdb_scripts: false,
29-
c_enum_min_bits: Some(8),
30-
os: "vexos".into(),
31-
vendor: "vex".into(),
33+
has_thumb_interworking: true,
3234
..Default::default()
3335
},
3436
}

src/doc/rustc/src/platform-support.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ target | std | notes
159159
`armv7-unknown-linux-musleabihf` | ✓ | Armv7-A Linux with musl 1.2.3, hardfloat
160160
[`armv7-unknown-linux-ohos`](platform-support/openharmony.md) | ✓ | Armv7-A OpenHarmony
161161
[`armv7a-none-eabi`](platform-support/arm-none-eabi.md) | * | Bare Armv7-A
162-
[`armv7a-vex-v5`](platform-support/armv7a-vex-v5.md) | * | Armv7-A Cortex-A9 VEX V5 Brain, vexOS
162+
[`armv7a-vex-v5`](platform-support/armv7a-vex-v5.md) | * | Armv7-A Cortex-A9 VEX V5 Brain, VEXos
163163
[`armv7r-none-eabi`](platform-support/armv7r-none-eabi.md) | * | Bare Armv7-R
164164
[`armv7r-none-eabihf`](platform-support/armv7r-none-eabi.md) | * | Bare Armv7-R, hardfloat
165165
`i586-pc-windows-msvc` | * | 32-bit Windows w/o SSE [^x86_32-floats-x87]

0 commit comments

Comments
 (0)