Skip to content

Commit 264ce7b

Browse files
committed
Use jemalloc for linux builds
1 parent 3e85997 commit 264ce7b

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)