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