Skip to content

Commit ccbaa87

Browse files
authored
Add files via upload
1 parent ca0f92e commit ccbaa87

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/lib.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ use serde_json::Value;
1313
all(target_os = "linux", target_arch = "x86", not(target_env = "musl"))
1414
))]
1515
use mimalloc::MiMalloc;
16+
#[cfg(any(
17+
not(target_os = "linux"),
18+
all(target_os = "linux", target_env = "musl"),
19+
all(target_os = "linux", target_arch = "x86_64", not(target_env = "musl")),
20+
all(target_os = "linux", target_arch = "x86", not(target_env = "musl"))
21+
))]
1622
#[global_allocator]
1723
static GLOBAL: MiMalloc = MiMalloc;
1824

0 commit comments

Comments
 (0)