Skip to content

Commit 07051c0

Browse files
bors[bot]matklad
andauthored
Merge #3531
3531: Use jemalloc for linux builds r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
2 parents 5da2905 + 264ce7b commit 07051c0

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

xtask/src/dist.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,14 @@ fn dist_client(nightly: bool) -> Result<()> {
4747
fn dist_server() -> Result<()> {
4848
if cfg!(target_os = "linux") {
4949
std::env::set_var("CC", "clang");
50-
run!("cargo build --package rust-analyzer --bin rust-analyzer --release --target x86_64-unknown-linux-musl")?;
50+
run!(
51+
"cargo build --manifest-path ./crates/rust-analyzer/Cargo.toml --bin rust-analyzer --release
52+
--target x86_64-unknown-linux-musl
53+
--features=jemalloc"
54+
)?;
5155
run!("strip ./target/x86_64-unknown-linux-musl/release/rust-analyzer")?;
5256
} else {
53-
run!("cargo build --package rust-analyzer --bin rust-analyzer --release")?;
57+
run!("cargo build --manifest-path ./crates/rust-analyzer/Cargo.toml --bin rust-analyzer --release")?;
5458
}
5559

5660
let (src, dst) = if cfg!(target_os = "linux") {

0 commit comments

Comments
 (0)