mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-27 20:35:09 +00:00
Use jemalloc for linux builds
This commit is contained in:
parent
3e8599778f
commit
264ce7b722
1 changed files with 6 additions and 2 deletions
|
@ -47,10 +47,14 @@ fn dist_client(nightly: bool) -> Result<()> {
|
||||||
fn dist_server() -> Result<()> {
|
fn dist_server() -> Result<()> {
|
||||||
if cfg!(target_os = "linux") {
|
if cfg!(target_os = "linux") {
|
||||||
std::env::set_var("CC", "clang");
|
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")?;
|
run!("strip ./target/x86_64-unknown-linux-musl/release/rust-analyzer")?;
|
||||||
} else {
|
} 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") {
|
let (src, dst) = if cfg!(target_os = "linux") {
|
||||||
|
|
Loading…
Reference in a new issue