From c9b4c8c49894ce06f2bd60742fc8e1ea0df22a22 Mon Sep 17 00:00:00 2001 From: Niklas Fiekas Date: Sat, 31 Aug 2024 20:49:58 +0200 Subject: [PATCH] Let script/bundle-linux preserve RUSTFLAGS (#17202) Example usage: RUSTFLAGS="--cfg gles" ./script/install-linux Release Notes: - N/A --- script/bundle-linux | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/bundle-linux b/script/bundle-linux index 17b00b07f13252a07ccb68ddffdc3e0cfbd3dedb..8ebe1119452d1050cf1869bb4624b50a60455492 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="-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