Disable mimalloc for wasm target

This commit is contained in:
Pekka Enberg 2023-10-24 19:01:22 +03:00
parent 20eba95383
commit dad0b6d627
2 changed files with 5 additions and 4 deletions

View file

@ -9,10 +9,9 @@ mod translate;
mod types;
mod vdbe;
use mimalloc::MiMalloc;
#[cfg(not(target_family = "wasm"))]
#[global_allocator]
static GLOBAL: MiMalloc = MiMalloc;
static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;
use anyhow::Result;
use fallible_iterator::FallibleIterator;