Allow local build of remote_server dev to be deployed to different linux than local (#33395)

setup local build of `remote_server` to not depend of the local linux
libraries by :
- enable `vendored-libgit2` feature of git2
- setup target triple to `unknown-linux-musl` (mirror bundle-linux
script)
- add flag ` -C target-feature=+crt-static` in `RUSTFLAGS` env var
(mirror bundle-linux script)

Bonus:
Add an option to setup mold as linker of local build.

Closes #33341

Release Notes:

 - N/A
This commit is contained in:
Gwen Lg 2025-07-08 18:31:20 +02:00 committed by GitHub
parent 925464cfc6
commit 263080c4c4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 146 additions and 135 deletions

1
Cargo.lock generated
View file

@ -13213,6 +13213,7 @@ dependencies = [
"fs",
"futures 0.3.31",
"git",
"git2",
"git_hosting_providers",
"gpui",
"gpui_tokio",