mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
Add back jemalloc support
This commit is contained in:
parent
6764d790ac
commit
9b5fa1c61a
7 changed files with 94 additions and 4 deletions
|
@ -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")?;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue