mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-04 03:13:29 +03:00
scripts: Fix bundle-linux when RUSTFLAGS is unset (#17218)
The install-linux script fails to build when the RUSTFLAGS environment variable is not set. Bash attempts to expand an empty variable and fails due to the prior set -u Closes #17217 Release Notes: - N/A
This commit is contained in:
parent
c9b4c8c498
commit
6a9820e637
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user