tools: Add squiid target

Signed-off-by: Christoph Heiss <contact@christoph-heiss.at>
This commit is contained in:
Christoph Heiss 2022-07-09 17:38:05 +02:00 committed by Christoph Heiss
parent 9270463e45
commit aaa8fb6197
Signed by: c8h4
GPG key ID: 9C82009BEEDEA0FF
5 changed files with 18 additions and 0 deletions

View file

@ -152,6 +152,7 @@ static TARGETS: &[&str] = &[
"x86_64-unknown-netbsd", "x86_64-unknown-netbsd",
"x86_64-unknown-none", "x86_64-unknown-none",
"x86_64-unknown-redox", "x86_64-unknown-redox",
"x86_64-unknown-squiid",
"x86_64-unknown-hermit", "x86_64-unknown-hermit",
"x86_64-unknown-uefi", "x86_64-unknown-uefi",
]; ];

View file

@ -34,6 +34,7 @@ static UNIX_SYSTEMS: &[&str] = &[
"netbsd", "netbsd",
"openbsd", "openbsd",
"redox", "redox",
"squiid",
"solaris", "solaris",
"vxworks", "vxworks",
]; ];

View file

@ -45,6 +45,9 @@ fn l4re() {}
#[cfg(target_os = "redox")] #[cfg(target_os = "redox")]
fn redox() {} fn redox() {}
#[cfg(target_os = "squiid")]
fn squiid() {}
#[cfg(target_os = "solaris")] #[cfg(target_os = "solaris")]
fn solaris() {} fn solaris() {}

View file

@ -45,6 +45,9 @@ fn l4re() {}
#[cfg(redox)] #[cfg(redox)]
fn redox() {} fn redox() {}
#[cfg(squiid)]
fn squiid() {}
#[cfg(solaris)] #[cfg(solaris)]
fn solaris() {} fn solaris() {}

View file

@ -139,6 +139,16 @@ LL | #[cfg(redox)]
| |
= help: did you mean `unix`? = help: did you mean `unix`?
error: operating system used in target family position
--> $DIR/mismatched_target_os_unix.rs:45:1
|
LL | #[cfg(squiid)]
| ^^^^^^-----^^
| |
| help: try: `target_os = "squiid"`
|
= help: did you mean `unix`?
error: operating system used in target family position error: operating system used in target family position
--> $DIR/mismatched_target_os_unix.rs:48:1 --> $DIR/mismatched_target_os_unix.rs:48:1
| |