aboutsummaryrefslogtreecommitdiff
path: root/xtask
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-03-09 11:35:31 +0000
committerAleksey Kladov <[email protected]>2020-03-09 11:35:31 +0000
commit264ce7b7228025b8730d193fdfc07438b0795cb0 (patch)
tree8cb48ee95a50ce514198e5b6a35cf9a2401ffb49 /xtask
parent3e8599778f5d2305ffce865882e8185905fe7525 (diff)
Use jemalloc for linux builds
Diffstat (limited to 'xtask')
-rw-r--r--xtask/src/dist.rs8
1 files changed, 6 insertions, 2 deletions
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<()> {
47fn dist_server() -> Result<()> { 47fn dist_server() -> Result<()> {
48 if cfg!(target_os = "linux") { 48 if cfg!(target_os = "linux") {
49 std::env::set_var("CC", "clang"); 49 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 )?;
51 run!("strip ./target/x86_64-unknown-linux-musl/release/rust-analyzer")?; 55 run!("strip ./target/x86_64-unknown-linux-musl/release/rust-analyzer")?;
52 } else { 56 } 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")?;
54 } 58 }
55 59
56 let (src, dst) = if cfg!(target_os = "linux") { 60 let (src, dst) = if cfg!(target_os = "linux") {