fix: disable jemalloc on FreeBSD

As jemalloc is the default system allocator on FreeBSD and the
jemalloc-sys crate failes to compile on FreeBSD, this fixes the build on
FreeBSD.
This commit is contained in:
Alexander Sieg 2021-11-28 12:12:43 +01:00 committed by David Peter
parent 52f22557a5
commit 5fbfdfadb8
2 changed files with 2 additions and 1 deletions

View File

@ -64,7 +64,7 @@ libc = "0.2"
# FIXME: Re-enable jemalloc on macOS
# jemalloc is currently disabled on macOS due to a bug in jemalloc in combination with macOS
# Catalina. See https://github.com/sharkdp/fd/issues/498 for details.
[target.'cfg(all(not(windows), not(target_os = "android"), not(target_os = "macos"), not(target_env = "musl")))'.dependencies]
[target.'cfg(all(not(windows), not(target_os = "android"), not(target_os = "macos"), not(target_os = "freebsd"), not(target_env = "musl")))'.dependencies]
jemallocator = "0.3.0"
[dev-dependencies]

View File

@ -38,6 +38,7 @@ use crate::regex_helper::{pattern_has_uppercase_char, pattern_matches_strings_wi
not(windows),
not(target_os = "android"),
not(target_os = "macos"),
not(target_os = "freebsd"),
not(target_env = "musl")
))]
#[global_allocator]