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