From 895054f7fe1c15e1dbf84c2c0fc5ab5da0cb7c16 Mon Sep 17 00:00:00 2001 From: Anton Alkin Date: Thu, 15 Aug 2024 12:45:56 +0200 Subject: [PATCH] arrow: use clang from llvm installation to avoid stack probing issue with llvm@18 --- arrow.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/arrow.sh b/arrow.sh index 5cd2b8a6fb..4cc89602c9 100644 --- a/arrow.sh +++ b/arrow.sh @@ -61,7 +61,16 @@ rsync -a --exclude='**/.git' --delete --delete-excluded "$SOURCEDIR/" ./src_tmp/ case $ARCHITECTURE in osx*) - CLANG_EXECUTABLE=/usr/bin/clang + # use default llvm from homebrew if available + if [ -d `brew --prefix llvm` ]; then + CLANG_EXECUTABLE=`brew --prefix llvm`/bin/clang + else + # fall back to llvm@17 + if [ -d `brew --prefix llvm`@17 ]; then + CLANG_EXECUTABLE=`brew --prefix llvm`@17/bin/clang + fi + + fi ;; *) CLANG_EXECUTABLE=${CLANG_ROOT}/bin-safe/clang