diff options
author | Alexander Sieg <alex@xanderio.de> | 2021-11-28 12:12:43 +0100 |
---|---|---|
committer | David Peter <sharkdp@users.noreply.github.com> | 2021-11-28 17:42:15 +0100 |
commit | 5fbfdfadb82763199127427bc88c24d74aeb3f03 (patch) | |
tree | 5954de57670b5cd34fdffe4e40e37a329054bb8c | |
parent | 52f22557a52e3c9669db2cd1db4f9e282ff96b54 (diff) |
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.
-rw-r--r-- | Cargo.toml | 2 | ||||
-rw-r--r-- | src/main.rs | 1 |
2 files changed, 2 insertions, 1 deletions
@@ -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] diff --git a/src/main.rs b/src/main.rs index cb6dfa8..4f4ab14 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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] |