FORMULAv23.1.6
llvm for macOS
Next-gen compiler infrastructure
Installation on macOS (Apple Silicon & Intel)
brew install llvm
Package Metadata
| Identifier | llvm |
|---|---|
| Current Version | 23.1.6 |
| Tap Repository | homebrew/core |
| License | Apache-2.0 WITH LLVM-exception |
| Upstream Homepage | https://llvm.org/ |
| Last Verified | 2026-11-26T14:43:31Z |
Runtime Dependencies (2)
Build Dependencies (3)
Engineering Caveats
CLANG_CONFIG_FILE_SYSTEM_DIR: $HOMEBREW_PREFIX/etc/clang CLANG_CONFIG_FILE_USER_DIR: ~/.config/clang LLD and LLDB are now provided in separate formulae: brew install lld brew install lldb Z3 solver support will be removed in LLVM 24 as it is unsupported upstream, see https://github.com/llvm/llvm-project/pull/205370 Using `clang`, `clang++`, etc., requires a CLT installation at `/Library/Developer/CommandLineTools`. If you don't want to install the CLT, you can write appropriate configuration files pointing to your SDK at ~/.config/clang. To use the bundled libunwind please use the following LDFLAGS: LDFLAGS="-L$HOMEBREW_PREFIX/opt/llvm/lib/unwind -lunwind" To use the bundled libc++ please use the following LDFLAGS: LDFLAGS="-L$HOMEBREW_PREFIX/opt/llvm/lib/c++ -L$HOMEBREW_PREFIX/opt/llvm/lib/unwind -lunwind" Features newer than system libc++ will require the following define to enable (support for this may be removed in a future major LLVM release): CPPFLAGS="-D_LIBCPP_DISABLE_AVAILABILITY" NOTE: You probably want to use the libunwind and libc++ provided by macOS unless you know what you're doing.
Related macOS Packages
llnodeLLDB plugin for live/post-mortem debugging of node.js appsllvm@14Next-gen compiler infrastructurellmfitFind what models run on your hardwarellvm@15Next-gen compiler infrastructurellmAccess large language models from the command-linellvm@16Next-gen compiler infrastructurellhttpPort of http_parser to llparsellvm@17Next-gen compiler infrastructure