Do not use jemalloc on illumos

jemalloc does not work on illumos; it's use is
already conditional on environments that are not
msvc, so extend the conditionals involved to also
exclude illumos.
pull/822/merge
Dan Cross 2025-09-16 17:47:49 +07:00 committed by Wilfred Hughes
parent 1a4313423d
commit d6ab90d840
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-zig = "1.1.2"
[target.'cfg(not(target_env = "msvc"))'.dependencies]
[target.'cfg(not(any(target_env = "msvc", target_os = "illumos")))'.dependencies]
tikv-jemallocator = "0.6"
[dev-dependencies]

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