Skip to content

Commit

Permalink
Add armv6 and armv7 target support for FreeBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Nov 30, 2022
1 parent efbb08d commit 10f5964
Show file tree
Hide file tree
Showing 2 changed files with 973 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/target.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ fn get_supported_architectures(os: &Os) -> Vec<Arch> {
Os::NetBsd => vec![Arch::Aarch64, Arch::X86, Arch::X86_64],
Os::FreeBsd => vec![
Arch::Aarch64,
Arch::Armv6L,
Arch::Armv7L,
Arch::Powerpc64,
Arch::Powerpc64Le,
Arch::X86,
Expand Down Expand Up @@ -236,6 +238,8 @@ impl Target {
(Os::FreeBsd, Arch::X86)
| (Os::FreeBsd, Arch::X86_64)
| (Os::FreeBsd, Arch::Aarch64)
| (Os::FreeBsd, Arch::Armv6L)
| (Os::FreeBsd, Arch::Armv7L)
| (Os::FreeBsd, Arch::Powerpc64)
| (Os::FreeBsd, Arch::Powerpc64Le)
// NetBSD
Expand All @@ -251,6 +255,7 @@ impl Target {
Arch::X86_64 => "amd64",
Arch::X86 => "i386",
Arch::Aarch64 => "arm64",
Arch::Armv6L | Arch::Armv7L => "arm",
Arch::Powerpc64 => "powerpc64",
Arch::Powerpc64Le => "powerpc64le",
_ => panic!(
Expand Down
Loading

0 comments on commit 10f5964

Please sign in to comment.