From 68a94118457a963939ae609c40adcb5e42675a35 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 23 Feb 2021 21:02:17 +0300 Subject: reliable memory usage during benchmarking --- xtask/src/main.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'xtask') diff --git a/xtask/src/main.rs b/xtask/src/main.rs index 5a99f4a76..cbb9b315e 100644 --- a/xtask/src/main.rs +++ b/xtask/src/main.rs @@ -134,7 +134,10 @@ FLAGS: "bb" => { let suffix: String = args.free_from_str()?; finish_args(args)?; - cmd!("cargo build --release").run()?; + { + let _d = pushd("./crates/rust-analyzer")?; + cmd!("cargo build --release --features jemalloc").run()?; + } cp("./target/release/rust-analyzer", format!("./target/rust-analyzer-{}", suffix))?; Ok(()) } -- cgit v1.2.3