mirror of https://github.com/sharkdp/fd.git
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:
parent
52f22557a5
commit
5fbfdfadb8
|
@ -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]
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue