Skip to content

Commit

Permalink
Merge pull request #656 from pkubaj/patch-1
Browse files Browse the repository at this point in the history
Add support for powerpc64* on FreeBSD
  • Loading branch information
messense authored Oct 28, 2021
2 parents 4d51112 + 7ce40cc commit addace0
Show file tree
Hide file tree
Showing 3 changed files with 1,428 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/target.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,12 @@ fn get_supported_architectures(os: &Os) -> Vec<Arch> {
],
Os::Windows => vec![Arch::X86, Arch::X86_64, Arch::Aarch64],
Os::Macos => vec![Arch::Aarch64, Arch::X86_64],
Os::FreeBsd => vec![Arch::X86_64, Arch::Aarch64],
Os::FreeBsd => vec![
Arch::Aarch64,
Arch::Powerpc64,
Arch::Powerpc64Le,
Arch::X86_64,
],
Os::OpenBsd => vec![Arch::X86, Arch::X86_64, Arch::Aarch64],
}
}
Expand Down Expand Up @@ -143,6 +148,8 @@ impl Target {
match (&self.os, &self.arch) {
(Os::FreeBsd, Arch::X86_64)
| (Os::FreeBsd, Arch::Aarch64)
| (Os::FreeBsd, Arch::Powerpc64)
| (Os::FreeBsd, Arch::Powerpc64Le)
| (Os::OpenBsd, Arch::X86)
| (Os::OpenBsd, Arch::X86_64)
| (Os::OpenBsd, Arch::Aarch64) => {
Expand All @@ -155,6 +162,8 @@ impl Target {
Arch::X86_64 => "amd64",
Arch::X86 => "i386",
Arch::Aarch64 => "arm64",
Arch::Powerpc64 => "powerpc64",
Arch::Powerpc64Le => "powerpc64le",
_ => panic!(
"unsupported architecutre should not have reached get_platform_tag()"
),
Expand Down
Loading

0 comments on commit addace0

Please sign in to comment.