Disable musl tests on powerpc64

This commit is contained in:
Amanieu d'Antras 2022-01-04 00:09:07 +01:00
parent 70119faaa4
commit 66925cff62
2 changed files with 9 additions and 0 deletions

View File

@ -18,6 +18,7 @@ fn main() {
mod musl_reference_tests {
use rand::seq::SliceRandom;
use rand::Rng;
use std::env;
use std::fs;
use std::process::Command;
@ -60,6 +61,12 @@ mod musl_reference_tests {
}
pub fn generate() {
// PowerPC tests are failing on LLVM 13: https://github.com/rust-lang/rust/issues/88520
let target_arch = env::var("CARGO_CFG_TARGET_ARCH").unwrap();
if target_arch == "powerpc64" {
return;
}
let files = fs::read_dir("src/math")
.unwrap()
.map(|f| f.unwrap().path())

View File

@ -51,5 +51,7 @@ pub fn _eq(a: f64, b: f64) -> Result<(), u64> {
}
}
// PowerPC tests are failing on LLVM 13: https://github.com/rust-lang/rust/issues/88520
#[cfg(not(target_arch = "powerpc64"))]
#[cfg(all(test, feature = "musl-reference-tests"))]
include!(concat!(env!("OUT_DIR"), "/musl-tests.rs"));