Skip to content

Commit 708ffd6

Browse files
decathorperami3l
authored andcommitted
fix: add powerpc64 and s390x to known target_arch values for tests
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.
1 parent eafe1bf commit 708ffd6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/test.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,10 @@ pub fn this_host_triple() -> String {
144144
"aarch64"
145145
} else if cfg!(target_arch = "loongarch64") {
146146
"loongarch64"
147+
} else if cfg!(target_arch = "powerpc64") && cfg!(target_endian = "little") {
148+
"powerpc64le"
149+
} else if cfg!(target_arch = "s390x") {
150+
"s390x"
147151
} else {
148152
unimplemented!()
149153
};

0 commit comments

Comments
 (0)