diff --git a/crates/ruff_cli/Cargo.toml b/crates/ruff_cli/Cargo.toml index b5a7fcedfa..7f6917b69c 100644 --- a/crates/ruff_cli/Cargo.toml +++ b/crates/ruff_cli/Cargo.toml @@ -66,8 +66,8 @@ ureq = { version = "2.5.0", features = [] } [package.metadata.maturin] name = "ruff" -[target.'cfg(windows)'.dependencies] +[target.'cfg(target_os = "windows")'.dependencies] mimalloc = "0.1.29" -[target.'cfg(all(not(windows), any(target_arch = "x86_64", target_arch = "aarch64", target_arch = "powerpc64")))'.dependencies] +[target.'cfg(all(any(target_os = "linux", target_os = "macos"), any(target_arch = "x86_64", target_arch = "aarch64", target_arch = "powerpc64")))'.dependencies] tikv-jemallocator = "0.5.0" diff --git a/crates/ruff_cli/src/main.rs b/crates/ruff_cli/src/main.rs index cf806cde16..5d8a9c6cef 100644 --- a/crates/ruff_cli/src/main.rs +++ b/crates/ruff_cli/src/main.rs @@ -29,7 +29,7 @@ mod resolve; static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc; #[cfg(all( - not(target_os = "windows"), + any(target_os = "linux", target_os = "macos"), any( target_arch = "x86_64", target_arch = "aarch64",