From cbe8a6867cd18e77e0ba7c4bdeb0e96f24e2bb1b Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Sat, 3 May 2025 21:56:33 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=91=E2=80=8D=F0=9F=92=BB=20Fix=20mac?= =?UTF-8?q?=5Fgcc=20HOMEBREW=5FPATH?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- buildroot/bin/mac_gcc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/buildroot/bin/mac_gcc b/buildroot/bin/mac_gcc index 05ee9dd295..6c5d7ea24a 100755 --- a/buildroot/bin/mac_gcc +++ b/buildroot/bin/mac_gcc @@ -11,7 +11,9 @@ which port >/dev/null && HAS_MACPORTS=1 which brew >/dev/null && HAS_HOMEBREW=1 MACPORTS_PATH=$(dirname "$(which port)") -HOMEBREW_PATH="$(brew --prefix)/bin" +if ((HAS_HOMEBREW)); then + HOMEBREW_PATH="$(brew --prefix)/bin" +fi if [[ $1 == "apple" || $1 == "darwin" || $1 == "system" ]]; then