about summary refs log tree commit diff
path: root/compiler/rustc_target/src/spec/base/avr_gnu.rs
diff options
context:
space:
mode:
authorNilstrieb <48135649+Nilstrieb@users.noreply.github.com>2024-03-02 17:12:43 +0100
committerMaybe Waffle <waffle.lapkin@gmail.com>2024-03-05 15:42:10 +0000
commit1db67fb854dfe56ff7b6e94e777e211b8d406dab (patch)
tree8a076c4f2aa71cab60c51602bd4eb2b225199a3f /compiler/rustc_target/src/spec/base/avr_gnu.rs
parentbdde2a80aef587cdbb8eb2d6e295d5c1d05830d9 (diff)
downloadrust-1db67fb854dfe56ff7b6e94e777e211b8d406dab.tar.gz
rust-1db67fb854dfe56ff7b6e94e777e211b8d406dab.zip
Add a `description` field to target definitions
This is the short description (`64-bit MinGW (Windows 7+)`) including
the platform requirements.

The reason for doing it like this is that this PR will be quite prone to
conflicts whenever targets get added, so it should be as simple as
possible to get it merged. Future PRs which migrate targets are scoped
to groups of targets, so they will not conflict as they can just touch
these.

This moves some of the information from the rustc book into the
compiler.
It cannot be queried yet, that is future work. It is also future work to
fill out all the descriptions, which will coincide with the work of
moving over existing target docs to the new format.
Diffstat (limited to 'compiler/rustc_target/src/spec/base/avr_gnu.rs')
-rw-r--r--compiler/rustc_target/src/spec/base/avr_gnu.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_target/src/spec/base/avr_gnu.rs b/compiler/rustc_target/src/spec/base/avr_gnu.rs
index cd324c94bbe..1e410cea8d6 100644
--- a/compiler/rustc_target/src/spec/base/avr_gnu.rs
+++ b/compiler/rustc_target/src/spec/base/avr_gnu.rs
@@ -8,6 +8,7 @@ use object::elf;
 pub fn target(target_cpu: &'static str, mmcu: &'static str) -> Target {
     Target {
         arch: "avr".into(),
+        description: None,
         data_layout: "e-P1-p:16:8-i8:8-i16:8-i32:8-i64:8-f32:8-f64:8-n8-a:8".into(),
         llvm_target: "avr-unknown-unknown".into(),
         pointer_width: 16,