diff --git a/script/bundle-linux b/script/bundle-linux index 8ebe1119452d1050cf1869bb4624b50a60455492..029d748f4f10bce8e27298eea4524d6e6c3403bb 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