Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

scripts: Fix bundle-linux when RUSTFLAGS is unset (#17218)

it-a-me6a9820e63787
diff --git a/script/bundle-linux b/script/bundle-linux
index 8ebe1119452..029d748f4f1 100755
--- a/script/bundle-linux
+++ b/script/bundle-linux
@@ -42,7 +42,7 @@ target_triple=${host_line#*: }
script/generate-licenses
# Build binary in release mode
-export RUSTFLAGS="$RUSTFLAGS -C link-args=-Wl,--disable-new-dtags,-rpath,\$ORIGIN/../lib"
+export RUSTFLAGS="${RUSTFLAGS:-} -C link-args=-Wl,--disable-new-dtags,-rpath,\$ORIGIN/../lib"
cargo build --release --target "${target_triple}" --package zed --package cli --package remote_server
# Strip the binary of all debug symbols