From f5e36624464511e50992534bb82f1138cf723c88 Mon Sep 17 00:00:00 2001 From: Henry Jiang Date: Thu, 26 Sep 2024 13:20:54 -0400 Subject: [PATCH] Remove jemalloc crate when building on AIX (#13529) ## Summary Building ruff on AIX breaks on `tiki-jemalloc-sys` due to OS header incompatibility ## Test Plan `cargo test` Co-authored-by: Henry Jiang --- crates/ruff/Cargo.toml | 2 +- crates/ruff/src/main.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/ruff/Cargo.toml b/crates/ruff/Cargo.toml index 2db5661d2a..a3209d1abf 100644 --- a/crates/ruff/Cargo.toml +++ b/crates/ruff/Cargo.toml @@ -79,7 +79,7 @@ ignored = ["chrono"] [target.'cfg(target_os = "windows")'.dependencies] mimalloc = { workspace = true } -[target.'cfg(all(not(target_os = "windows"), not(target_os = "openbsd"), any(target_arch = "x86_64", target_arch = "aarch64", target_arch = "powerpc64")))'.dependencies] +[target.'cfg(all(not(target_os = "windows"), not(target_os = "openbsd"), not(target_os = "aix"), any(target_arch = "x86_64", target_arch = "aarch64", target_arch = "powerpc64")))'.dependencies] tikv-jemallocator = { workspace = true } [lints] diff --git a/crates/ruff/src/main.rs b/crates/ruff/src/main.rs index 8be939671d..f1d0663788 100644 --- a/crates/ruff/src/main.rs +++ b/crates/ruff/src/main.rs @@ -16,6 +16,7 @@ static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc; #[cfg(all( not(target_os = "windows"), not(target_os = "openbsd"), + not(target_os = "aix"), any( target_arch = "x86_64", target_arch = "aarch64",