Skip to content

Commit fb9f38e

Browse files
committed
deactivate mimalloc-rs on windows
1 parent 936d4e2 commit fb9f38e

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

dist-workspace.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ members = ["cargo:."]
55
[dist]
66
build-command = ["cargo", "build"]
77
# Features to pass to cargo build
8-
features = ["use-jemalloc"]
9-
#features = ["use-mimalloc-rs"]
8+
features = ["use-mimalloc-rs"]
9+
#features = ["use-jemalloc"]
1010
#features = ["use-auto-allocator"]
1111
# The preferred dist version to use in CI (Cargo.toml SemVer syntax)
1212
cargo-dist-version = "0.30.0"

src/bin/dict-to-mozc.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@
99
static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;
1010

1111
#[cfg(feature = "use-mimalloc-rs")]
12+
#[cfg(all(
13+
feature = "use-mimalloc-rs",
14+
any(
15+
all(not(target_os = "windows"))
16+
)
17+
))]
1218
#[global_allocator]
1319
static GLOBAL_MIMALLOC: mimalloc_rust::GlobalMiMalloc = mimalloc_rust::GlobalMiMalloc;
1420

0 commit comments

Comments
 (0)