Merge pull request #20431 from Homebrew/rustc_wrapper-fix

shims/super/rustc_wrapper: fix comment
This commit is contained in:
Carlo Cabrera 2025-08-12 13:22:08 +00:00 committed by GitHub
commit e16be4672a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -9,7 +9,6 @@
RUSTC="${1}"
shift
# Prepend HOMEBREW_RUSTFLAGS to the arguments if set.
# HOMEBREW_RUSTFLAGS is set in extend/ENV/{std,super}.rb
# shellcheck disable=SC2086,SC2154
exec "${RUSTC}" "$@" ${HOMEBREW_RUSTFLAGS}
# Append HOMEBREW_RUSTFLAGS to the arguments if set.
read -ra RUSTFLAGS <<<"${HOMEBREW_RUSTFLAGS:-}"
exec "${RUSTC}" "$@" "${RUSTFLAGS[@]}"