Skip to content

Commit

Permalink
Add GNU/Hurd support
Browse files Browse the repository at this point in the history
It uses SysV ABI too.
  • Loading branch information
sthibaul committed May 29, 2024
1 parent 18ad35c commit f997383
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/targets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,7 @@ pub enum OperatingSystem {
Haiku,
Hermit,
Horizon,
Hurd,
Illumos,
Ios,
L4re,
Expand Down Expand Up @@ -684,6 +685,7 @@ impl OperatingSystem {
Haiku => Cow::Borrowed("haiku"),
Hermit => Cow::Borrowed("hermit"),
Horizon => Cow::Borrowed("horizon"),
Hurd => Cow::Borrowed("hurd"),
Illumos => Cow::Borrowed("illumos"),
Ios => Cow::Borrowed("ios"),
L4re => Cow::Borrowed("l4re"),
Expand Down Expand Up @@ -735,6 +737,7 @@ pub enum Environment {
GnuIlp32,
GnuLlvm,
HermitKernel,
HurdKernel,
LinuxKernel,
Macabi,
Musl,
Expand Down Expand Up @@ -775,6 +778,7 @@ impl Environment {
GnuIlp32 => Cow::Borrowed("gnu_ilp32"),
GnuLlvm => Cow::Borrowed("gnullvm"),
HermitKernel => Cow::Borrowed("hermitkernel"),
HurdKernel => Cow::Borrowed("hurdkernel"),
LinuxKernel => Cow::Borrowed("linuxkernel"),
Macabi => Cow::Borrowed("macabi"),
Musl => Cow::Borrowed("musl"),
Expand Down Expand Up @@ -1407,6 +1411,7 @@ impl FromStr for OperatingSystem {
"haiku" => Haiku,
"hermit" => Hermit,
"horizon" => Horizon,
"hurd" => Hurd,
"illumos" => Illumos,
"ios" => Ios,
"l4re" => L4re,
Expand Down Expand Up @@ -1461,6 +1466,7 @@ impl FromStr for Environment {
"gnu_ilp32" => GnuIlp32,
"gnullvm" => GnuLlvm,
"hermitkernel" => HermitKernel,
"hurdkernel" => HurdKernel,
"linuxkernel" => LinuxKernel,
"macabi" => Macabi,
"musl" => Musl,
Expand Down Expand Up @@ -1607,6 +1613,7 @@ mod tests {
"i686-unknown-dragonfly",
"i686-unknown-freebsd",
"i686-unknown-haiku",
"i686-unknown-hurd-gnu",
"i686-unknown-linux-gnu",
"i686-unknown-linux-musl",
"i686-unknown-netbsd",
Expand Down
1 change: 1 addition & 0 deletions src/triple.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ impl Triple {
| OperatingSystem::Fuchsia
| OperatingSystem::Haiku
| OperatingSystem::Hermit
| OperatingSystem::Hurd
| OperatingSystem::L4re
| OperatingSystem::Linux
| OperatingSystem::Netbsd
Expand Down

0 comments on commit f997383

Please sign in to comment.