From 9b5fa1c61a85972da419aa29d61286cb9e268f83 Mon Sep 17 00:00:00 2001 From: Jonas Schievink Date: Mon, 18 Jan 2021 19:25:55 +0100 Subject: Add back jemalloc support --- xtask/src/main.rs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'xtask/src/main.rs') diff --git a/xtask/src/main.rs b/xtask/src/main.rs index dec48629c..c3e5c7326 100644 --- a/xtask/src/main.rs +++ b/xtask/src/main.rs @@ -49,7 +49,8 @@ FLAGS: --client[=CLIENT] Install only VS Code plugin. CLIENT is one of 'code', 'code-exploration', 'code-insiders', 'codium', or 'code-oss' --server Install only the language server - --mimalloc Use mimalloc for server + --mimalloc Use mimalloc allocator for server + --jemalloc Use jemalloc allocator for server -h, --help Prints help information " ); @@ -65,8 +66,13 @@ FLAGS: return Ok(()); } - let malloc = - if args.contains("--mimalloc") { Malloc::Mimalloc } else { Malloc::System }; + let malloc = if args.contains("--mimalloc") { + Malloc::Mimalloc + } else if args.contains("--jemalloc") { + Malloc::Jemalloc + } else { + Malloc::System + }; let client_opt = args.opt_value_from_str("--client")?; -- cgit v1.2.3