FORMULAv22.1.8
llvm@22 for macOS
Next-gen compiler infrastructure
Installation on macOS (Apple Silicon & Intel)
brew install llvm-22
Package Metadata
| Identifier | llvm-22 |
|---|---|
| Current Version | 22.1.8 |
| 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 (1)
Build Dependencies (3)
Engineering Caveats
CLANG_CONFIG_FILE_SYSTEM_DIR: $HOMEBREW_PREFIX/etc/clang CLANG_CONFIG_FILE_USER_DIR: ~/.config/clang LLD is now provided in a separate formula: brew install lld@22 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@22/lib/unwind -lunwind" To use the bundled libc++ please use the following LDFLAGS: LDFLAGS="-L$HOMEBREW_PREFIX/opt/llvm@22/lib/c++ -L$HOMEBREW_PREFIX/opt/llvm@22/lib/unwind -lunwind" Features newer than system libc++ will require the following define to enable: 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
llvm@21Next-gen compiler infrastructurelm-sensorsTools for monitoring the temperatures, voltages, and fansllvm@20Next-gen compiler infrastructurelm4toolsTools for TI Stellaris Launchpad boardsllvm@19Next-gen compiler infrastructurelmdbLightning memory-mapped database: key-value data storellvm@18Next-gen compiler infrastructurelmfitC library for Levenberg-Marquardt minimization and least-squares fitting