Skip to content

Commit

Permalink
arrow fallback to llvm@18 or 17
Browse files Browse the repository at this point in the history
  • Loading branch information
aalkin committed Sep 26, 2024
1 parent e809f71 commit 016fd7d
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions arrow.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,16 @@ rsync -a --exclude='**/.git' --delete --delete-excluded "$SOURCEDIR/" ./src_tmp/

case $ARCHITECTURE in
osx*)
# 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
# use llvm@18
if [ -d "$(brew --prefix llvm)@18" ]; then
CLANG_EXECUTABLE="$(brew --prefix llvm)@18/bin/clang"
fi
# fall back to llvm@17
if [ -d "$(brew --prefix llvm)@17" ]; then
CLANG_EXECUTABLE="$(brew --prefix llvm)@17/bin/clang"
fi
echo "Need llvm@18 or llvm@17"
exit 1
;;
*)
CLANG_EXECUTABLE="${CLANG_ROOT}/bin-safe/clang"
Expand Down

0 comments on commit 016fd7d

Please sign in to comment.