fix windows build

This commit is contained in:
Robin Appelman 2024-07-28 20:01:44 +02:00
commit 96a5b6afff
2 changed files with 3 additions and 3 deletions

View file

@ -24,7 +24,7 @@ base64 = "0.21.7"
derive_more = { version = "1.0.0-beta.6", features = ["from"] } derive_more = { version = "1.0.0-beta.6", features = ["from"] }
rayon = "1.10.0" rayon = "1.10.0"
[target.'cfg(not(target_env = "msvc"))'.dependencies] [target.'cfg(not(target_os = "windows"))'.dependencies]
tikv-jemallocator = "0.6.0" tikv-jemallocator = "0.6.0"
[profile.dev.package."*"] [profile.dev.package."*"]

View file

@ -22,10 +22,10 @@ mod matcher;
mod timegraph; mod timegraph;
mod ui; mod ui;
#[cfg(not(target_env = "msvc"))] #[cfg(not(target_os = "windows"))]
use tikv_jemallocator::Jemalloc; use tikv_jemallocator::Jemalloc;
#[cfg(not(target_env = "msvc"))] #[cfg(not(target_os = "windows"))]
#[global_allocator] #[global_allocator]
static GLOBAL: Jemalloc = Jemalloc; static GLOBAL: Jemalloc = Jemalloc;