Do not use jemalloc on FreeBSD

FreeBSD uses jemalloc anyway, and tikv_jemallocator does not build.
pull/881/head
Dmitry Marakasov 2025-09-24 14:23:07 +07:00 committed by Wilfred Hughes
parent a0ce7b1b78
commit 9f31286dc3
2 changed files with 3 additions and 3 deletions

@ -110,7 +110,7 @@ tree-sitter-xml = "0.7.0"
tree-sitter-yaml = "0.7.0" tree-sitter-yaml = "0.7.0"
tree-sitter-zig = "1.1.2" tree-sitter-zig = "1.1.2"
[target.'cfg(not(any(target_env = "msvc", target_os = "illumos")))'.dependencies] [target.'cfg(not(any(target_env = "msvc", target_os = "illumos", target_os = "freebsd")))'.dependencies]
tikv-jemallocator = "0.6" tikv-jemallocator = "0.6"
[dev-dependencies] [dev-dependencies]

@ -91,10 +91,10 @@ use crate::parse::syntax;
/// ///
/// For reference, Jemalloc uses 10-20% more time (although up to 33% /// For reference, Jemalloc uses 10-20% more time (although up to 33%
/// more instructions) when testing on sample files. /// more instructions) when testing on sample files.
#[cfg(not(any(target_env = "msvc", target_os = "illumos")))] #[cfg(not(any(target_env = "msvc", target_os = "illumos", target_os = "freebsd")))]
use tikv_jemallocator::Jemalloc; use tikv_jemallocator::Jemalloc;
#[cfg(not(any(target_env = "msvc", target_os = "illumos")))] #[cfg(not(any(target_env = "msvc", target_os = "illumos", target_os = "freebsd")))]
#[global_allocator] #[global_allocator]
static GLOBAL: Jemalloc = Jemalloc; static GLOBAL: Jemalloc = Jemalloc;