Skip to content

Conversation

@alexreinking
Copy link
Member

Also applies to run-clang-format.sh. This has been pretty aggravating for a while.

@alexreinking alexreinking requested a review from abadams December 15, 2025 23:32
usage() { echo -e "Usage: $0 [-c]" 1>&2; exit 1; }

if [ "$(uname)" == "Darwin" ]; then
_DEFAULT_LLVM_LOCATION="/opt/homebrew/opt/llvm@$EXPECTED_VERSION"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be great if you add support for MacPorts. I recently discovered macports. They are actually enabling people with older macbooks to continue working. I have a 2015 MacBook Pro, and recent LLVM versions through Homebrew are like a day worth of compiling from source. MacPorts maintains builds for older OSes, and installation is much leaner and cleaner.


if [ "$(uname)" == "Darwin" ]; then
patch_file () { sed -i '' -E "$@"; }
_DEFAULT_LLVM_LOCATION="/opt/homebrew/opt/llvm@$EXPECTED_VERSION"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MacPorts? 🥺

Copy link
Contributor

@mcourteaux mcourteaux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I'd greatly appreciate if Halide treats the LLVM and clang installations from MacPorts as a first-class citizen.

@alexreinking
Copy link
Member Author

I'd greatly appreciate if Halide treats the LLVM and clang installations from MacPorts as a first-class citizen.

If you use it, I'm happy to review/approve patches to improve support. 🙂

@alexreinking alexreinking merged commit 833a219 into main Jan 19, 2026
18 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants