From 63a8fd7a4aebc92b01d69b2b094e6389218c693a Mon Sep 17 00:00:00 2001 From: Carlo Cabrera Date: Tue, 12 Aug 2025 00:45:04 +0800 Subject: [PATCH] rustc_wrapper: pass `HOMEBREW_RUSTFLAGS` last If we pass it first, it can be overridden by other arguments passed on the command line. We don't want that. See discussion at Homebrew/homebrew-core#232566. --- Library/Homebrew/shims/super/rustc_wrapper | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/shims/super/rustc_wrapper b/Library/Homebrew/shims/super/rustc_wrapper index ad2c97c7a1..a9daf6b560 100755 --- a/Library/Homebrew/shims/super/rustc_wrapper +++ b/Library/Homebrew/shims/super/rustc_wrapper @@ -12,4 +12,4 @@ 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} "$@" +exec "${RUSTC}" "$@" ${HOMEBREW_RUSTFLAGS}