Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

Commit

Permalink
chore: enable allocator in linux
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico committed Sep 20, 2022
1 parent bb39ada commit 3e557de
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crates/rome_cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ tokio = { version = "1.15.0", features = ["process"] }
[target.'cfg(windows)'.dependencies]
mimalloc = "0.1.29"

[target.'cfg(target_os = "macos")'.dependencies]
[target.'cfg(not(windows))'.dependencies]
tikv-jemallocator = "0.5.0"

[dev-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion crates/rome_cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use tokio::runtime::Runtime;
#[global_allocator]
static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;

#[cfg(target_os = "macos")]
#[cfg(not(target_os = "windows"))]
#[global_allocator]
static GLOBAL: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc;

Expand Down
2 changes: 1 addition & 1 deletion xtask/bench/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ humansize = {version = "1.1.1", optional = true }
[target.'cfg(target_os = "windows")'.dependencies]
mimalloc = "0.1.29"

[target.'cfg(target_os = "macos")'.dependencies]
[target.'cfg(not(windows))'.dependencies]
tikv-jemallocator = "0.5.0"

[features]
Expand Down
2 changes: 1 addition & 1 deletion xtask/bench/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ static ALLOCATOR: dhat::Alloc = dhat::Alloc;
#[global_allocator]
static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;

#[cfg(all(target_os = "macos", not(feature = "dhat-heap")))]
#[cfg(all(not(target_os = "windows"), not(feature = "dhat-heap")))]
#[global_allocator]
static GLOBAL: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc;

Expand Down

0 comments on commit 3e557de

Please sign in to comment.