Enable jemalloc only on linux OSs

This commit is contained in:
Clément Renault 2019-11-25 14:51:47 +01:00
parent c93949474c
commit 8aed1d96c5
No known key found for this signature in database
GPG Key ID: 92ADA4E935E71FA4

View File

@ -15,7 +15,7 @@ use meilidb_http::routes::index::index_update_callback;
mod analytics; mod analytics;
#[cfg(not(target_os = "macos"))] #[cfg(target_os = "linux")]
#[global_allocator] #[global_allocator]
static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc; static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;