aboutsummaryrefslogtreecommitdiff
path: root/xtask
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-03-09 11:38:43 +0000
committerGitHub <[email protected]>2020-03-09 11:38:43 +0000
commit07051c06072d6f07924c48316973e2402ad5fa8b (patch)
tree8cb48ee95a50ce514198e5b6a35cf9a2401ffb49 /xtask
parent5da29058fcc9bce7abba8c93274117d2644282ad (diff)
parent264ce7b7228025b8730d193fdfc07438b0795cb0 (diff)
Merge #3531
3531: Use jemalloc for linux builds r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
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") {