Skip to content

Commit

Permalink
endianess
Browse files Browse the repository at this point in the history
  • Loading branch information
baszalmstra committed Jul 14, 2024
1 parent 783bb35 commit c2a8897
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,15 @@ fn glibc_detectors() -> Vec<(&'static str, &'static [u8])> {
));
}

#[cfg(target_arch = "powerpc64")]
#[cfg(all(target_arch = "powerpc64", target_endian = "big"))]
{
detectors.push((
"ppc64le",
include_bytes!("../linux-glibc-detectors/bin/linux-glibc-detector-ppc64").as_slice(),
));
}

#[cfg(all(target_arch = "powerpc64", target_endian = "little"))]
{
detectors.push((
"ppc64le",
Expand Down

0 comments on commit c2a8897

Please sign in to comment.