From f596c2163cc7b95fc4a6666c9a20afd49a61d937 Mon Sep 17 00:00:00 2001 From: MintoDA1 <51412913+MintoDA1@users.noreply.github.com> Date: Mon, 21 Aug 2023 15:00:42 -0400 Subject: [PATCH] Use env variable for setting homebrew location --- buildscripts/set_compilers.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildscripts/set_compilers.sh b/buildscripts/set_compilers.sh index 979fd8958..c8379bd47 100755 --- a/buildscripts/set_compilers.sh +++ b/buildscripts/set_compilers.sh @@ -96,7 +96,7 @@ case $COMPILER in echo \"Please install Homebrew first\" exit 1 fi - COMPILER_PREFIX=${COMPILER_PREFIX:-"/opt/homebrew/opt/llvm"} + COMPILER_PREFIX=${COMPILER_PREFIX:-"${HOMEBREW_PREFIX}/opt/llvm"} CC=${CC:-${COMPILER_PREFIX}/bin/clang} CXX=${CXX:-${COMPILER_PREFIX}/bin/clang++} CPP=${CPP:-${COMPILER_PREFIX}/bin/clang-cpp}