diff --git a/Library/Homebrew/shims/super/rustc_wrapper b/Library/Homebrew/shims/super/rustc_wrapper index a9daf6b560..f18ca4bb30 100755 --- a/Library/Homebrew/shims/super/rustc_wrapper +++ b/Library/Homebrew/shims/super/rustc_wrapper @@ -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[@]}"