diff --git a/crates/oxc_cli/src/main.rs b/crates/oxc_cli/src/main.rs index 09f10edf4..3dfd0f2e8 100644 --- a/crates/oxc_cli/src/main.rs +++ b/crates/oxc_cli/src/main.rs @@ -1,7 +1,9 @@ +#[cfg_attr(miri, ignore)] #[cfg(not(target_env = "msvc"))] #[global_allocator] static GLOBAL: jemallocator::Jemalloc = jemallocator::Jemalloc; +#[cfg_attr(miri, ignore)] #[cfg(target_os = "windows")] #[global_allocator] static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc; diff --git a/tasks/benchmark/src/main.rs b/tasks/benchmark/src/main.rs index 583d53db2..91c33cb12 100644 --- a/tasks/benchmark/src/main.rs +++ b/tasks/benchmark/src/main.rs @@ -8,10 +8,12 @@ use oxc_benchmark::get_code; use oxc_parser::Parser; use pico_args::Arguments; +#[cfg_attr(miri, ignore)] #[cfg(not(target_env = "msvc"))] #[global_allocator] static GLOBAL: jemallocator::Jemalloc = jemallocator::Jemalloc; +#[cfg_attr(miri, ignore)] #[cfg(target_os = "windows")] #[global_allocator] static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;