From 264ce7b7228025b8730d193fdfc07438b0795cb0 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 9 Mar 2020 12:35:31 +0100 Subject: Use jemalloc for linux builds --- xtask/src/dist.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'xtask') diff --git a/xtask/src/dist.rs b/xtask/src/dist.rs index 12bad820f..7f2c51223 100644 --- a/xtask/src/dist.rs +++ b/xtask/src/dist.rs @@ -47,10 +47,14 @@ fn dist_client(nightly: bool) -> Result<()> { fn dist_server() -> Result<()> { if cfg!(target_os = "linux") { std::env::set_var("CC", "clang"); - run!("cargo build --package rust-analyzer --bin rust-analyzer --release --target x86_64-unknown-linux-musl")?; + run!( + "cargo build --manifest-path ./crates/rust-analyzer/Cargo.toml --bin rust-analyzer --release + --target x86_64-unknown-linux-musl + --features=jemalloc" + )?; run!("strip ./target/x86_64-unknown-linux-musl/release/rust-analyzer")?; } else { - run!("cargo build --package rust-analyzer --bin rust-analyzer --release")?; + run!("cargo build --manifest-path ./crates/rust-analyzer/Cargo.toml --bin rust-analyzer --release")?; } let (src, dst) = if cfg!(target_os = "linux") { -- cgit v1.2.3