diff --git a/Cargo.toml b/Cargo.toml index cbfc44f04..a52c2dfb4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -81,7 +81,7 @@ typenum = "1.16.0" x25519-dalek = "2.0.0-pre.1" dhat = "0.3.2" -[target.'cfg(all(target_arch = "x86_64", not(target_env = "msvc")))'.dependencies] +[target.'cfg(not(target_env = "msvc"))'.dependencies] tikv-jemallocator = "0.5.0" [dev-dependencies] diff --git a/benches/oneshot/ipa.rs b/benches/oneshot/ipa.rs index 309811033..a4b6e50d5 100644 --- a/benches/oneshot/ipa.rs +++ b/benches/oneshot/ipa.rs @@ -15,11 +15,7 @@ use rand::{rngs::StdRng, thread_rng, Rng, SeedableRng}; use std::{num::NonZeroUsize, time::Instant}; use tokio::runtime::Builder; -#[cfg(all( - target_arch = "x86_64", - not(target_env = "msvc"), - not(feature = "dhat-heap") -))] +#[cfg(all(not(target_env = "msvc"), not(feature = "dhat-heap")))] #[global_allocator] static GLOBAL: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc; diff --git a/src/bin/helper.rs b/src/bin/helper.rs index 0793e8046..3ee80e3a3 100644 --- a/src/bin/helper.rs +++ b/src/bin/helper.rs @@ -11,7 +11,7 @@ use std::error::Error; use tracing::info; -#[cfg(all(target_arch = "x86_64", not(target_env = "msvc")))] +#[cfg(not(target_env = "msvc"))] #[global_allocator] static GLOBAL: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc;