aboutsummaryrefslogtreecommitdiff
path: root/xtask/src/main.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-07-22 12:40:45 +0100
committerAleksey Kladov <[email protected]>2020-07-22 12:40:45 +0100
commitdeed44a472edaf11d35fa98c7e68a288f8dfe93f (patch)
treeff50a8ada66c03237c9a364be400107331547722 /xtask/src/main.rs
parent26932e0060b74525f74df5e31ae0c88997e5d667 (diff)
Remove support for jemalloc
We only used it for measuring memory usage, but now we can use glibc's allocator for that just fine
Diffstat (limited to 'xtask/src/main.rs')
-rw-r--r--xtask/src/main.rs12
1 files changed, 2 insertions, 10 deletions
diff --git a/xtask/src/main.rs b/xtask/src/main.rs
index 399ff7204..53d3ce3e7 100644
--- a/xtask/src/main.rs
+++ b/xtask/src/main.rs
@@ -45,7 +45,6 @@ USAGE:
45FLAGS: 45FLAGS:
46 --client-code Install only VS Code plugin 46 --client-code Install only VS Code plugin
47 --server Install only the language server 47 --server Install only the language server
48 --jemalloc Use jemalloc for server
49 --mimalloc Use mimalloc for server 48 --mimalloc Use mimalloc for server
50 -h, --help Prints help information 49 -h, --help Prints help information
51 " 50 "
@@ -62,15 +61,8 @@ FLAGS:
62 return Ok(()); 61 return Ok(());
63 } 62 }
64 63
65 let malloc = match (args.contains("--jemalloc"), args.contains("--mimalloc")) { 64 let malloc =
66 (false, false) => Malloc::System, 65 if args.contains("--mimalloc") { Malloc::Mimalloc } else { Malloc::System };
67 (true, false) => Malloc::Jemalloc,
68 (false, true) => Malloc::Mimalloc,
69 (true, true) => {
70 eprintln!("error: Cannot use both `--jemalloc` and `--mimalloc`");
71 return Ok(());
72 }
73 };
74 66
75 args.finish()?; 67 args.finish()?;
76 68