Skip to content

Commit 66925cf

Browse files
committed
Disable musl tests on powerpc64
1 parent 70119fa commit 66925cf

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

build.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ fn main() {
1818
mod musl_reference_tests {
1919
use rand::seq::SliceRandom;
2020
use rand::Rng;
21+
use std::env;
2122
use std::fs;
2223
use std::process::Command;
2324

@@ -60,6 +61,12 @@ mod musl_reference_tests {
6061
}
6162

6263
pub fn generate() {
64+
// PowerPC tests are failing on LLVM 13: https://github.com/rust-lang/rust/issues/88520
65+
let target_arch = env::var("CARGO_CFG_TARGET_ARCH").unwrap();
66+
if target_arch == "powerpc64" {
67+
return;
68+
}
69+
6370
let files = fs::read_dir("src/math")
6471
.unwrap()
6572
.map(|f| f.unwrap().path())

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,7 @@ pub fn _eq(a: f64, b: f64) -> Result<(), u64> {
5151
}
5252
}
5353

54+
// PowerPC tests are failing on LLVM 13: https://github.com/rust-lang/rust/issues/88520
55+
#[cfg(not(target_arch = "powerpc64"))]
5456
#[cfg(all(test, feature = "musl-reference-tests"))]
5557
include!(concat!(env!("OUT_DIR"), "/musl-tests.rs"));

0 commit comments

Comments
 (0)