Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion apps/oxfmt/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ pub mod stdin;
#[cfg(feature = "napi")]
pub use main_napi::*;

#[cfg(all(feature = "allocator", not(miri), not(target_family = "wasm")))]
#[cfg(all(
feature = "allocator",
not(any(target_arch = "arm", miri, target_os = "freebsd", target_family = "wasm"))
))]
#[global_allocator]
static GLOBAL: mimalloc_safe::MiMalloc = mimalloc_safe::MiMalloc;
5 changes: 4 additions & 1 deletion apps/oxlint/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ mod js_plugins;
// Use Mimalloc as the global allocator if `--features allocator` is enabled.
// Mimalloc has better performance, but this is feature-gated because it's slow to compile.
// `--features allocator` is only used in release builds.
#[cfg(all(feature = "allocator", not(miri), not(target_family = "wasm")))]
#[cfg(all(
feature = "allocator",
not(any(target_arch = "arm", miri, target_os = "freebsd", target_family = "wasm"))
))]
#[global_allocator]
static GLOBAL: mimalloc_safe::MiMalloc = mimalloc_safe::MiMalloc;
Loading