shims/super/rustc_wrapper: fix comment
In #20424, we moved `HOMEBREW_RUSTFLAGS` to the end of the compiler invocation, but didn't update the comment. Let's fix that. While we're here, let's fix these `shellcheck disable`s.
This commit is contained in:
parent
38485e365f
commit
b89d4ef633
@ -9,7 +9,6 @@
|
|||||||
RUSTC="${1}"
|
RUSTC="${1}"
|
||||||
shift
|
shift
|
||||||
|
|
||||||
# Prepend HOMEBREW_RUSTFLAGS to the arguments if set.
|
# Append HOMEBREW_RUSTFLAGS to the arguments if set.
|
||||||
# HOMEBREW_RUSTFLAGS is set in extend/ENV/{std,super}.rb
|
read -ra RUSTFLAGS <<<"${HOMEBREW_RUSTFLAGS:-}"
|
||||||
# shellcheck disable=SC2086,SC2154
|
exec "${RUSTC}" "$@" "${RUSTFLAGS[@]}"
|
||||||
exec "${RUSTC}" "$@" ${HOMEBREW_RUSTFLAGS}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user