3531: Use jemalloc for linux builds r=matklad a=matklad



bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
bors[bot] 2020-03-09 11:38:43 +00:00 committed by GitHub
commit 07051c0607
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,10 +47,14 @@ fn dist_client(nightly: bool) -> Result<()> {
fn dist_server() -> Result<()> {
if cfg!(target_os = "linux") {
std::env::set_var("CC", "clang");
run!("cargo build --package rust-analyzer --bin rust-analyzer --release --target x86_64-unknown-linux-musl")?;
run!(
"cargo build --manifest-path ./crates/rust-analyzer/Cargo.toml --bin rust-analyzer --release
--target x86_64-unknown-linux-musl
--features=jemalloc"
)?;
run!("strip ./target/x86_64-unknown-linux-musl/release/rust-analyzer")?;
} else {
run!("cargo build --package rust-analyzer --bin rust-analyzer --release")?;
run!("cargo build --manifest-path ./crates/rust-analyzer/Cargo.toml --bin rust-analyzer --release")?;
}
let (src, dst) = if cfg!(target_os = "linux") {