diff --git a/Cargo.toml b/Cargo.toml index 218de72b..8df6df17 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -43,7 +43,7 @@ toml = "0.8.2" uuid = { version = "1.8.0", features = ["v4"] } validator = {version="0.18.1", features = ["derive"] } -[target.'cfg(not(target_env = "msvc"))'.dependencies] +[target.'cfg(not(any(target_env = "msvc", target_os = "freebsd")))'.dependencies] tikv-jemallocator = "0.5" [features] diff --git a/src/main.rs b/src/main.rs index 755ecc57..9efc90e1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -22,10 +22,10 @@ //! //! Neolink source code is available online at //! -#[cfg(not(target_env = "msvc"))] +#[cfg(not(any(target_env = "msvc", target_os = "freebsd")))] use tikv_jemallocator::Jemalloc; -#[cfg(not(target_env = "msvc"))] +#[cfg(not(any(target_env = "msvc", target_os = "freebsd")))] #[global_allocator] static GLOBAL: Jemalloc = Jemalloc;