Also use mimalloc on musl

This commit is contained in:
Félix Saparelli 2022-07-06 00:32:13 +12:00
parent 57c6125fc1
commit e66dc60867
No known key found for this signature in database
GPG key ID: B948C4BAE44FC474
3 changed files with 26 additions and 3 deletions

View file

@ -25,7 +25,7 @@ use cargo_binstall::{
*,
};
#[cfg(windows)]
#[cfg(all(feature = "mimalloc", any(windows, target_env = "musl")))]
#[global_allocator]
static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;