Skip to content

Commit

Permalink
fix: add powerpc64 and s390x to known target_arch values for tests
Browse files Browse the repository at this point in the history
This fixes running tests on the ppc64le-unknown-linux-gnu and
s390x-unknown-linux-gnu targets. Tested and verified to work on
both of these architectures on Fedora Linux.
  • Loading branch information
decathorpe authored and rami3l committed Oct 29, 2024
1 parent eafe1bf commit 708ffd6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,10 @@ pub fn this_host_triple() -> String {
"aarch64"
} else if cfg!(target_arch = "loongarch64") {
"loongarch64"
} else if cfg!(target_arch = "powerpc64") && cfg!(target_endian = "little") {
"powerpc64le"
} else if cfg!(target_arch = "s390x") {
"s390x"
} else {
unimplemented!()
};
Expand Down

0 comments on commit 708ffd6

Please sign in to comment.