llvm

Install command:
brew install llvm

Also known as: llvm@19

Next-gen compiler infrastructure

https://llvm.org/

License: Apache-2.0 WITH LLVM-exception

Formula JSON API: /api/formula/llvm.json

Formula code: llvm.rb on GitHub

Bottle (binary package) installation support provided for:

Apple Silicon sequoia
sonoma
ventura
Intel sonoma
ventura
64-bit linux

Current versions:

stable 19.1.2
head ⚡️ HEAD

Other versions:

llvm@18 18.1.8 Next-gen compiler infrastructure
llvm@17 17.0.6 Next-gen compiler infrastructure
llvm@16 16.0.6 Next-gen compiler infrastructure
llvm@15 15.0.7 Next-gen compiler infrastructure
llvm@14 14.0.6 Next-gen compiler infrastructure
llvm@13 13.0.1 Next-gen compiler infrastructure
llvm@12 12.0.1 Next-gen compiler infrastructure
llvm@11 11.1.0 Next-gen compiler infrastructure

Keg-only

Depends on:

python@3.13 3.13.0 Interpreted, interactive, object-oriented programming language
xz 5.6.3 General-purpose data compression with high compression ratio
z3 4.13.3 High-performance theorem prover
zstd 1.5.6 Zstandard is a real-time compression algorithm

Depends on when building from source:

cmake 3.30.5 Cross-platform make
ninja 1.12.1 Small build system for use with gyp or CMake
swig 4.3.0 Generate scripting interfaces to C/C++ code
LLD is now provided in a separate formula:
    brew install lld

We plan to build LLVM 20 with `LLVM_ENABLE_EH=OFF`. Please see:
    https://github.com/orgs/Homebrew/discussions/5654

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"

NOTE: You probably want to use the libunwind and libc++ provided by macOS unless you know what you're doing.

Analytics:

Installs (30 days)
llvm 72,125
llvm --HEAD 118
Installs on Request (30 days)
llvm 49,494
llvm --HEAD 118
Build Errors (30 days)
llvm 167
llvm --HEAD 7
Installs (90 days)
llvm 161,766
llvm --HEAD 216
Installs on Request (90 days)
llvm 89,768
llvm --HEAD 216
Installs (365 days)
llvm 675,413
llvm --HEAD 811
Installs on Request (365 days)
llvm 337,433
llvm --HEAD 810
Fork me on GitHub