Disable musl tests on powerpc64
This commit is contained in:
parent
70119faaa4
commit
66925cff62
7
build.rs
7
build.rs
@ -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())
|
||||
|
@ -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"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user