summaryrefslogtreecommitdiff
path: root/cli/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/main.rs')
-rw-r--r--cli/main.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/cli/main.rs b/cli/main.rs
index 85942cbd8..c3421b0cd 100644
--- a/cli/main.rs
+++ b/cli/main.rs
@@ -26,6 +26,13 @@ mod version;
mod watcher;
mod worker;
+#[cfg(not(target_env = "msvc"))]
+use tikv_jemallocator::Jemalloc;
+
+#[cfg(not(target_env = "msvc"))]
+#[global_allocator]
+static GLOBAL: Jemalloc = Jemalloc;
+
use crate::args::flags_from_vec;
use crate::args::DenoSubcommand;
use crate::args::Flags;