Skip to content
Myr

fix: disable jemalloc on FreeBSD

Before adoption: this commit came in with the history the project adopted, so no landing records it.

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.

authored by Alexander Sieg · committed by David Peter · parent 52f2255 · Browse files · 2 files+2 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+2 added−1 removed

  • other:+2 added−1 removed

2 files+2 added−1 removed

modified:src/main.rs+1 added
36 unmodified lines
37#[cfg(all(38 not(windows),39 not(target_os = "android"),40 not(target_os = "macos"),41 not(target_os = "freebsd"),42 not(target_env = "musl")43))]44#[global_allocator]45static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;
524 unmodified lines
modified:Cargo.toml+1 added-1 removed