Disable musl tests on powerpc64
This commit is contained in:
parent
4f5d1524fd
commit
eb26f75f63
2 changed files with 9 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue