aboutsummaryrefslogtreecommitdiff
path: root/xtask/src
diff options
context:
space:
mode:
Diffstat (limited to 'xtask/src')
-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") {