Skip to content

Commit cd3ca6f

Browse files
lewisfmmax-niedermanTropix126Gavin-Niederman
committed
Add minimal armv7a-vex-v5 support
> A tier 3 target must have a designated developer or developers (the "target maintainers") on record to be CCed when issues arise regarding the target. (The mechanism to track and CC such developers may evolve over time.) Lewis McClelland (@lewisfm), @Tropix126, Gavin Niederman (@Gavin-Niederman), and Max Niederman (@max-niederman) will be the designated maintainers for `armv7a-vex-v5` support. > Targets must use naming consistent with any existing targets; for instance, a target for the same CPU or OS as an existing Rust target should use the same name for that CPU or OS. Targets should normally use the same names and naming conventions as used elsewhere in the broader ecosystem beyond Rust (such as in other toolchains), unless they have a very good reason to diverge. Changing the name of a target can be highly disruptive, especially once the target reaches a higher tier, so getting the name right is important even for a tier 3 target. `armv7a-vex-v5` follows the cpu-vendor-model convention used by most tier three targets. For example: `armv76k-nintendo-3ds` or `armv7k-apple-watchos`. > Target names should not introduce undue confusion or ambiguity unless absolutely necessary to maintain ecosystem compatibility. For example, if the name of the target makes people extremely likely to form incorrect beliefs about what it targets, the name should be changed or augmented to disambiguate it. > If possible, use only letters, numbers, dashes and underscores for the name. Periods (.) are known to cause issues in Cargo. This target name is not confusing. > Tier 3 targets may have unusual requirements to build or use, but must not create legal issues or impose onerous legal terms for the Rust project or for Rust developers or users. It's using open source tools only. > The target must not introduce license incompatibilities. > > Anything added to the Rust repository must be under the standard Rust license (MIT OR Apache-2.0). Understood. > The target must not cause the Rust tools or libraries built for any other host (even when supporting cross-compilation to the target) to depend on any new dependency less permissive than the Rust licensing policy. This applies whether the dependency is a Rust crate that would require adding new license exceptions (as specified by the tidy tool in the rust-lang/rust repository), or whether the dependency is a native library or binary. In other words, the introduction of the target must not cause a user installing or running a version of Rust or the Rust tools to be subject to any new license requirements. There are no new dependencies/features required in the current state of this target. Porting the standard library will likely require depending on the crate `vex-sdk` which is MIT-licensed and contains bindings to the VEX SDK runtime (which is included in VEXos). > Compiling, linking, and emitting functional binaries, libraries, or other code for the target (whether hosted on the target itself or cross-compiling from another target) must not depend on proprietary (non-FOSS) libraries. Host tools built for the target itself may depend on the ordinary runtime libraries supplied by the platform and commonly used by other applications built for the target, but those libraries must not be required for code generation for the target; cross-compilation to the target must not require such libraries at all. For instance, rustc built for the target may depend on a common proprietary C runtime library or console output library, but must not depend on a proprietary code generation library or code optimization library. Rust's license permits such combinations, but the Rust project has no interest in maintaining such combinations within the scope of Rust itself, even at tier 3. > > "onerous" here is an intentionally subjective term. At a minimum, "onerous" legal/licensing terms include but are not limited to: non-disclosure requirements, non-compete requirements, contributor license agreements (CLAs) or equivalent, "non-commercial"/"research-only"/etc terms, requirements conditional on the employer or employment of any particular Rust developers, revocable terms, any requirements that create liability for the Rust project or its developers or users, or any requirements that adversely affect the livelihood or prospects of the Rust project or its developers or users. Although the VEX V5 Brain and its SDK are proprietary, this target does not link to any proprietary binaries or libraries, and is based solely on publicly available information about the VEX SDK. > Neither this policy nor any decisions made regarding targets shall create any binding agreement or estoppel by any party. If any member of an approving Rust team serves as one of the maintainers of a target, or has any legal or employment requirement (explicit or implicit) that might affect their decisions regarding a target, they must recuse themselves from any approval decisions regarding the target's tier status, though they may otherwise participate in discussions. > > This requirement does not prevent part or all of this policy from being cited in an explicit contract or work agreement (e.g. to implement or maintain support for a target). This requirement exists to ensure that a developer or team responsible for reviewing and approving a target does not face any legal threats or obligations that would prevent them from freely exercising their judgment in such approval, even if such judgment involves subjective matters or goes beyond the letter of these requirements. I understand. > Tier 3 targets should attempt to implement as much of the standard libraries as possible and appropriate (core for most targets, alloc for targets that can support dynamic memory allocation, std for targets with an operating system or equivalent layer of system-provided functionality), but may leave some code unimplemented (either unavailable or stubbed out as appropriate), whether because the target makes it impossible to implement or challenging to implement. The authors of pull requests are not obligated to avoid calling any portions of the standard library on the basis of a tier 3 target not implementing those portions. This initial PR only contains a compiler target definition to teach the `cc` crate about this target. Porting the standard library is the next step for this target. > The target must provide documentation for the Rust community explaining how to build for the target, using cross-compilation if possible. If the target supports running binaries, or running tests (even if they do not pass), the documentation must explain how to run such binaries or tests for the target, using emulation if possible or dedicated hardware if necessary. This target is documented in `src/doc/rustc/src/platform-support/armv7a-vex-v5.md`. > Tier 3 targets must not impose burden on the authors of pull requests, or other developers in the community, to maintain the target. In particular, do not post comments (automated or manual) on a PR that derail or suggest a block on the PR based on a tier 3 target. Do not send automated messages or notifications (via any medium, including via @) to a PR author or others involved with a PR regarding a tier 3 target, unless they have opted into such messages. > > Backlinks such as those generated by the issue/PR tracker when linking to an issue or PR are not considered a violation of this policy, within reason. However, such messages (even on a separate repository) must not generate notifications to anyone involved with a PR who has not requested such notifications. I understand and assent. > Patches adding or updating tier 3 targets must not break any existing tier 2 or tier 1 target, and must not knowingly break another tier 3 target without approval of either the compiler team or the maintainers of the other tier 3 target. > > In particular, this may come up when working on closely related targets, such as variations of the same architecture with different features. Avoid introducing unconditional uses of features that another variation of the target may not have; use conditional compilation or runtime detection, as appropriate, to let each target run code supported by that target. I understand and assent. > Tier 3 targets must be able to produce assembly using at least one of rustc's supported backends from any host target. (Having support in a fork of the backend is not sufficient, it must be upstream.) `armv7a-vex-v5` has nearly identical codegen to `armv7a-none-eabihf`, so this is not an issue. > If a tier 3 target stops meeting these requirements, or the target maintainers no longer have interest or time, or the target shows no signs of activity and has not built for some time, or removing the target would improve the quality of the Rust codebase, we may post a PR to remove it; any such PR will be CCed to the target maintainers (and potentially other people who have previously worked on the target), to check potential interest in improving the situation. I understand. Co-authored-by: Max Niederman <max@maxniederman.com> Co-authored-by: Tropical <42101043+Tropix126@users.noreply.github.com> Co-authored-by: Gavin Niederman <gavinniederman@gmail.com>
1 parent 61cb1e9 commit cd3ca6f

File tree

15 files changed

+306
-9
lines changed

15 files changed

+306
-9
lines changed

compiler/rustc_target/src/spec/abi_map.rs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,15 @@ impl AbiMap {
6060
"x86_64" => Arch::X86_64,
6161
_ => Arch::Other,
6262
};
63-
let os = if target.is_like_windows { OsKind::Windows } else { OsKind::Other };
63+
64+
let os = if target.is_like_windows {
65+
OsKind::Windows
66+
} else if target.is_like_vexos {
67+
OsKind::VEXos
68+
} else {
69+
OsKind::Other
70+
};
71+
6472
AbiMap { arch, os }
6573
}
6674

@@ -82,6 +90,10 @@ impl AbiMap {
8290
(ExternAbi::System { .. }, Arch::X86) if os == OsKind::Windows && !has_c_varargs => {
8391
CanonAbi::X86(X86Call::Stdcall)
8492
}
93+
(ExternAbi::System { .. }, Arch::Arm(..)) if self.os == OsKind::VEXos => {
94+
// Calls to VEXos APIs do not use VFP registers.
95+
CanonAbi::Arm(ArmCall::Aapcs)
96+
}
8597
(ExternAbi::System { .. }, _) => CanonAbi::C,
8698

8799
// fallible lowerings
@@ -191,6 +203,7 @@ enum Arch {
191203
#[derive(Debug, PartialEq, Copy, Clone)]
192204
enum OsKind {
193205
Windows,
206+
VEXos,
194207
Other,
195208
}
196209

compiler/rustc_target/src/spec/json.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ impl Target {
153153
forward!(is_like_msvc);
154154
forward!(is_like_wasm);
155155
forward!(is_like_android);
156+
forward!(is_like_vexos);
156157
forward!(binary_format);
157158
forward!(default_dwarf_version);
158159
forward!(allows_weak_linkage);
@@ -345,6 +346,7 @@ impl ToJson for Target {
345346
target_option_val!(is_like_msvc);
346347
target_option_val!(is_like_wasm);
347348
target_option_val!(is_like_android);
349+
target_option_val!(is_like_vexos);
348350
target_option_val!(binary_format);
349351
target_option_val!(default_dwarf_version);
350352
target_option_val!(allows_weak_linkage);
@@ -538,6 +540,7 @@ struct TargetSpecJson {
538540
is_like_msvc: Option<bool>,
539541
is_like_wasm: Option<bool>,
540542
is_like_android: Option<bool>,
543+
is_like_vexos: Option<bool>,
541544
binary_format: Option<BinaryFormat>,
542545
default_dwarf_version: Option<u32>,
543546
allows_weak_linkage: Option<bool>,

compiler/rustc_target/src/spec/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2101,6 +2101,7 @@ supported_targets! {
21012101
("armv7a-none-eabihf", armv7a_none_eabihf),
21022102
("armv7a-nuttx-eabi", armv7a_nuttx_eabi),
21032103
("armv7a-nuttx-eabihf", armv7a_nuttx_eabihf),
2104+
("armv7a-vex-v5", armv7a_vex_v5),
21042105

21052106
("msp430-none-elf", msp430_none_elf),
21062107

@@ -2571,6 +2572,8 @@ pub struct TargetOptions {
25712572
pub is_like_wasm: bool,
25722573
/// Whether a target toolchain is like Android, implying a Linux kernel and a Bionic libc
25732574
pub is_like_android: bool,
2575+
/// Whether a target toolchain is like VEXos, the operating system used by the VEX Robotics V5 Brain.
2576+
pub is_like_vexos: bool,
25742577
/// Target's binary file format. Defaults to BinaryFormat::Elf
25752578
pub binary_format: BinaryFormat,
25762579
/// Default supported version of DWARF on this platform.
@@ -2953,6 +2956,7 @@ impl Default for TargetOptions {
29532956
is_like_msvc: false,
29542957
is_like_wasm: false,
29552958
is_like_android: false,
2959+
is_like_vexos: false,
29562960
binary_format: BinaryFormat::Elf,
29572961
default_dwarf_version: 4,
29582962
allows_weak_linkage: true,
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
use crate::spec::{
2+
Cc, FloatAbi, LinkerFlavor, Lld, PanicStrategy, RelocModel, Target, TargetMetadata,
3+
TargetOptions,
4+
};
5+
6+
const LINKER_SCRIPT: &str = include_str!("./armv7a_vex_v5_linker_script.ld");
7+
8+
pub(crate) fn target() -> Target {
9+
let opts = TargetOptions {
10+
vendor: "vex".into(),
11+
env: "v5".into(),
12+
os: "vexos".into(),
13+
cpu: "cortex-a9".into(),
14+
abi: "eabihf".into(),
15+
is_like_vexos: true,
16+
llvm_floatabi: Some(FloatAbi::Hard),
17+
linker_flavor: LinkerFlavor::Gnu(Cc::No, Lld::Yes),
18+
linker: Some("rust-lld".into()),
19+
features: "+v7,+neon,+vfp3d16,+thumb2".into(),
20+
relocation_model: RelocModel::Static,
21+
disable_redzone: true,
22+
max_atomic_width: Some(64),
23+
panic_strategy: PanicStrategy::Abort,
24+
emit_debug_gdb_scripts: false,
25+
c_enum_min_bits: Some(8),
26+
default_uwtable: true,
27+
has_thumb_interworking: true,
28+
link_script: Some(LINKER_SCRIPT.into()),
29+
..Default::default()
30+
};
31+
Target {
32+
llvm_target: "armv7a-none-eabihf".into(),
33+
metadata: TargetMetadata {
34+
description: Some("ARMv7-A Cortex-A9 VEX V5 Brain".into()),
35+
tier: Some(3),
36+
host_tools: Some(false),
37+
std: Some(false),
38+
},
39+
pointer_width: 32,
40+
data_layout: "e-m:e-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64".into(),
41+
arch: "arm".into(),
42+
options: opts,
43+
}
44+
}
Lines changed: 144 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,144 @@
1+
OUTPUT_FORMAT("elf32-littlearm")
2+
ENTRY(_boot)
3+
4+
/*
5+
* PROVIDE() is used here so that users can override default values.
6+
* This is intended to give developers the option to use this Rust
7+
* target even if the default values in this linker script aren't
8+
* suitable for their needs.
9+
*
10+
* For example: `-C link-arg=--defsym=__stack_length=8M` could
11+
* be used to increase the stack size above the value set in this
12+
* file.
13+
*/
14+
15+
PROVIDE(__vcodesig_magic = 0x35585658); /* XVX5 */
16+
PROVIDE(__vcodesig_type = 0); /* V5_SIG_TYPE_USER */
17+
PROVIDE(__vcodesig_owner = 2); /* V5_SIG_OWNER_PARTNER */
18+
PROVIDE(__vcodesig_options = 0); /* none (0) */
19+
20+
PROVIDE(__user_ram_start = 0x03800000);
21+
PROVIDE(__user_ram_length = 48M);
22+
PROVIDE(__user_ram_end = __user_ram_start + __user_ram_length); /* 0x8000000 */
23+
24+
PROVIDE(__code_signature_length = 0x20);
25+
26+
PROVIDE(__stack_length = 4M);
27+
PROVIDE(__heap_end = __user_ram_end - __stack_length);
28+
PROVIDE(__user_length = __heap_start - __user_ram_start);
29+
30+
MEMORY {
31+
USER_RAM (RWX) : ORIGIN = __user_ram_start, LENGTH = __user_ram_length
32+
}
33+
34+
SECTIONS {
35+
/*
36+
* VEXos expects program binaries to have a 32-byte header called a "code signature"
37+
* at their start which tells the OS that we are a valid program and configures some
38+
* miscellaneous startup behavior.
39+
*/
40+
.code_signature : {
41+
LONG(__vcodesig_magic)
42+
LONG(__vcodesig_type)
43+
LONG(__vcodesig_owner)
44+
LONG(__vcodesig_options)
45+
46+
FILL(0)
47+
. = __user_ram_start + __code_signature_length;
48+
} > USER_RAM
49+
50+
/*
51+
* Executable program instructions.
52+
*/
53+
.text : {
54+
/* _boot routine (entry point from VEXos, must be at 0x03800020) */
55+
*(.boot)
56+
57+
/* The rest of the program. */
58+
*(.text .text.*)
59+
} > USER_RAM
60+
61+
/*
62+
* Global/uninitialized/static/constant data sections.
63+
*/
64+
.rodata : {
65+
*(.rodata .rodata1 .rodata.*)
66+
*(.srodata .srodata.*)
67+
} > USER_RAM
68+
69+
/*
70+
* ARM Stack Unwinding Sections
71+
*
72+
* These sections are added by the compiler in some cases to facilitate stack unwinding.
73+
* __eh_frame_start and similar symbols are used by libunwind.
74+
*/
75+
76+
.except_ordered : {
77+
PROVIDE(__extab_start = .);
78+
*(.gcc_except_table *.gcc_except_table.*)
79+
*(.ARM.extab*)
80+
PROVIDE(__extab_end = .);
81+
} > USER_RAM
82+
83+
.eh_frame_hdr : {
84+
/* see https://github.com/llvm/llvm-project/blob/main/libunwind/src/AddressSpace.hpp#L78 */
85+
PROVIDE(__eh_frame_hdr_start = .);
86+
KEEP(*(.eh_frame_hdr))
87+
PROVIDE(__eh_frame_hdr_end = .);
88+
} > USER_RAM
89+
90+
.eh_frame : {
91+
PROVIDE(__eh_frame_start = .);
92+
KEEP(*(.eh_frame))
93+
PROVIDE(__eh_frame_end = .);
94+
} > USER_RAM
95+
96+
.except_unordered : {
97+
PROVIDE(__exidx_start = .);
98+
*(.ARM.exidx*)
99+
PROVIDE(__exidx_end = .);
100+
} > USER_RAM
101+
102+
/* -- Data intended to be mutable at runtime begins here. -- */
103+
104+
.data : {
105+
*(.data .data1 .data.*)
106+
*(.sdata .sdata.* .sdata2.*)
107+
} > USER_RAM
108+
109+
/* -- End of loadable sections - anything beyond this point shouldn't go in the binary uploaded to the device. -- */
110+
111+
.bss (NOLOAD) : {
112+
__bss_start = .;
113+
*(.sbss*)
114+
*(.bss .bss.*)
115+
116+
/* Align the heap */
117+
. = ALIGN(8);
118+
__bss_end = .;
119+
} > USER_RAM
120+
121+
/*
122+
* Active memory sections for the stack/heap.
123+
*
124+
* Because these are (NOLOAD), they will not influence the final size of the binary.
125+
*/
126+
.heap (NOLOAD) : {
127+
__heap_start = .;
128+
. = __heap_end;
129+
} > USER_RAM
130+
131+
.stack (NOLOAD) : ALIGN(8) {
132+
__stack_bottom = .;
133+
. += __stack_length;
134+
__stack_top = .;
135+
} > USER_RAM
136+
137+
/*
138+
* `.ARM.attributes` contains arch metadata for compatibility purposes, but we
139+
* only target one hardware configuration, meaning it'd just take up space.
140+
*/
141+
/DISCARD/ : {
142+
*(.ARM.attributes*)
143+
}
144+
}

src/bootstrap/src/core/sanity.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ pub struct Finder {
3333
//
3434
// Targets can be removed from this list once they are present in the stage0 compiler (usually by updating the beta compiler of the bootstrap).
3535
const STAGE0_MISSING_TARGETS: &[&str] = &[
36+
"armv7a-vex-v5",
3637
// just a dummy comment so the list doesn't get onelined
3738
];
3839

src/doc/rustc/src/SUMMARY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
- [armv7-sony-vita-newlibeabihf](platform-support/armv7-sony-vita-newlibeabihf.md)
6666
- [armv7-unknown-linux-uclibceabi](platform-support/armv7-unknown-linux-uclibceabi.md)
6767
- [armv7-unknown-linux-uclibceabihf](platform-support/armv7-unknown-linux-uclibceabihf.md)
68+
- [armv7a-vex-v5](platform-support/armv7a-vex-v5.md)
6869
- [\*-android and \*-androideabi](platform-support/android.md)
6970
- [\*-linux-ohos](platform-support/openharmony.md)
7071
- [\*-hurd-gnu](platform-support/hurd.md)

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,7 @@ target | std | host | notes
297297
[`armv7a-kmc-solid_asp3-eabi`](platform-support/kmc-solid.md) | ✓ | | ARM SOLID with TOPPERS/ASP3
298298
[`armv7a-kmc-solid_asp3-eabihf`](platform-support/kmc-solid.md) | ✓ | | ARM SOLID with TOPPERS/ASP3, hardfloat
299299
[`armv7a-none-eabihf`](platform-support/arm-none-eabi.md) | * | | Bare Armv7-A, hardfloat
300+
[`armv7a-vex-v5`](platform-support/armv7a-vex-v5.md) | ? | | Armv7-A Cortex-A9 VEX V5 Brain, VEXos
300301
[`armv7k-apple-watchos`](platform-support/apple-watchos.md) | ✓ | | Armv7-A Apple WatchOS
301302
[`armv7s-apple-ios`](platform-support/apple-ios.md) | ✓ | | Armv7-A Apple-A6 Apple iOS
302303
[`armv8r-none-eabihf`](platform-support/armv8r-none-eabihf.md) | * | | Bare Armv8-R, hardfloat
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
# `armv7a-vex-v5`
2+
3+
**Tier: 3**
4+
5+
Allows compiling user programs for the [VEX V5 Brain](https://www.vexrobotics.com/276-4810.html), a microcontroller for educational and competitive robotics.
6+
7+
Rust support for this target is not affiliated with VEX Robotics or IFI.
8+
9+
## Target maintainers
10+
11+
This target is maintained by members of the [vexide](https://github.com/vexide) organization:
12+
13+
- [@lewisfm](https://github.com/lewisfm)
14+
- [@Tropix126](https://github.com/Tropix126)
15+
- [@Gavin-Niederman](https://github.com/Gavin-Niederman)
16+
- [@max-niederman](https://github.com/max-niederman)
17+
18+
## Requirements
19+
20+
This target is cross-compiled and currently requires `#![no_std]`. Dynamic linking is unsupported.
21+
22+
When compiling for this target, the "C" calling convention maps to AAPCS with VFP registers (hard float ABI) and the "system" calling convention maps to AAPCS without VFP registers (soft float ABI).
23+
24+
This target generates binaries in the ELF format that may uploaded to the brain with external tools.
25+
26+
## Building the target
27+
28+
You can build Rust with support for this target by adding it to the `target` list in `bootstrap.toml`, and then running `./x build --target armv7a-vex-v5 compiler`.
29+
30+
## Building Rust programs
31+
32+
Rust does not yet ship pre-compiled artifacts for this target. To compile for
33+
this target, you will either need to build Rust with the target enabled (see
34+
"Building the target" above), or build your own copy of `core` by using
35+
`build-std` or similar.
36+
37+
When the compiler builds a binary, an ELF build artifact will be produced. Additional tools are required for this artifact to be recognizable to VEXos as a user program.
38+
39+
The [cargo-v5](https://github.com/vexide/cargo-v5) tool is capable of creating binaries that can be uploaded to the V5 brain. This tool wraps the `cargo build` command by supplying arguments necessary to build the target and produce an artifact recognizable to VEXos, while also providing functionality for uploading over USB to a V5 Controller or Brain.
40+
41+
To install the tool, run:
42+
43+
```sh
44+
cargo install cargo-v5
45+
```
46+
47+
The following fields in your project's `Cargo.toml` are read by `cargo-v5` to configure upload behavior:
48+
49+
```toml
50+
[package.metadata.v5]
51+
# Slot number to upload the user program to. This should be from 1-8.
52+
slot = 1
53+
# Program icon/thumbnail that will be displayed on the dashboard.
54+
icon = "cool-x"
55+
# Use gzip compression when uploading binaries.
56+
compress = true
57+
```
58+
59+
To build an uploadable BIN file using the release profile, run:
60+
61+
```sh
62+
cargo v5 build --release
63+
```
64+
65+
Programs can also be directly uploaded to the brain over a USB connection immediately after building:
66+
67+
```sh
68+
cargo v5 upload --release
69+
```
70+
71+
## Testing
72+
73+
Binaries built for this target can be run in an emulator (such as [vex-v5-qemu](https://github.com/vexide/vex-v5-qemu)), or uploaded to a physical device over a serial (USB) connection.
74+
75+
The default Rust test runner is not supported.
76+
77+
The Rust test suite for `library/std` is not yet supported.
78+
79+
## Cross-compilation toolchains and C code
80+
81+
This target can be cross-compiled from any host.
82+
83+
Linking to C libraries is not supported.

tests/assembly-llvm/targets/targets-elf.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,9 @@
193193
//@ revisions: armv7a_nuttx_eabihf
194194
//@ [armv7a_nuttx_eabihf] compile-flags: --target armv7a-nuttx-eabihf
195195
//@ [armv7a_nuttx_eabihf] needs-llvm-components: arm
196+
//@ revisions: armv7a_vex_v5
197+
//@ [armv7a_vex_v5] compile-flags: --target armv7a-vex-v5
198+
//@ [armv7a_vex_v5] needs-llvm-components: arm
196199
//@ revisions: armv7r_none_eabi
197200
//@ [armv7r_none_eabi] compile-flags: --target armv7r-none-eabi
198201
//@ [armv7r_none_eabi] needs-llvm-components: arm

0 commit comments

Comments
 (0)