diff --git a/Cargo.toml b/Cargo.toml index c5d441c..2e6408c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -52,7 +52,7 @@ features = ["suggestions", "color", "wrap_help"] [target.'cfg(all(unix, not(target_os = "redox")))'.dependencies] libc = "0.2" -[target.'cfg(all(unix, not(target_os = "redox"), not(target_env = "musl")))'.dependencies] +[target.'cfg(all(not(windows), not(target_env = "musl")))'.dependencies] jemallocator = "0.3.0" [dev-dependencies] diff --git a/src/main.rs b/src/main.rs index 29fb37b..426eb08 100644 --- a/src/main.rs +++ b/src/main.rs @@ -36,8 +36,7 @@ use crate::internal::{ }; // We use jemalloc for performance reasons, see https://github.com/sharkdp/fd/pull/481 -#[cfg(not(windows))] -#[cfg(not(target_env = "musl"))] +#[cfg(all(not(windows), not(target_env = "musl")))] #[global_allocator] static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;