Skip to content

Commit f962244

Browse files
author
dagou
committed
jemalloc
1 parent e4b4849 commit f962244

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ regex = "1.5.4"
3333
flate2 = "1.0"
3434
dashmap = { version = "6.0.1", features = ["rayon"] }
3535
num_cpus = "1.13.1"
36+
37+
[target.'cfg(not(target_env = "msvc"))'.dependencies]
3638
jemallocator = "0.5.4"
3739

3840
[dev-dependencies]

src/bin/kun.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ use kun_peng::utils::find_files;
1717
use std::path::PathBuf;
1818
use std::time::Instant;
1919

20+
#[cfg(not(target_env = "msvc"))]
2021
#[global_allocator]
2122
static GLOBAL: jemallocator::Jemalloc = jemallocator::Jemalloc;
2223

0 commit comments

Comments
 (0)