mirror of
https://codeberg.org/icewind/logsmash.git
synced 2026-06-03 10:04:12 +02:00
gate jemalloc behind musl
This commit is contained in:
parent
f7ed810253
commit
c1200c5676
3 changed files with 5 additions and 4 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -3,4 +3,5 @@ target
|
|||
.env
|
||||
result
|
||||
*.log
|
||||
profile.json
|
||||
profile.json
|
||||
*.out.*
|
||||
|
|
@ -31,7 +31,7 @@ ruzstd = "0.8.0"
|
|||
dialoguer = "0.11.0"
|
||||
indicatif = { version = "0.17.11", features = ["rayon"] }
|
||||
|
||||
[target.'cfg(not(target_os = "windows"))'.dependencies]
|
||||
[target.'cfg(target_env = "musl")'.dependencies]
|
||||
tikv-jemallocator = "0.6.0"
|
||||
|
||||
[profile.dev.package."*"]
|
||||
|
|
|
|||
|
|
@ -23,11 +23,11 @@ mod matcher;
|
|||
mod timegraph;
|
||||
mod ui;
|
||||
|
||||
#[cfg(not(target_os = "windows"))]
|
||||
#[cfg(target_env = "musl")]
|
||||
use tikv_jemallocator::Jemalloc;
|
||||
use time::format_description::{parse_owned, parse_strftime_owned};
|
||||
|
||||
#[cfg(not(target_os = "windows"))]
|
||||
#[cfg(target_env = "musl")]
|
||||
#[global_allocator]
|
||||
static GLOBAL: Jemalloc = Jemalloc;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue