llvm@19

Install command:
brew install llvm@19

Next-gen compiler infrastructure

https://llvm.org/

License: Apache-2.0 WITH LLVM-exception

Development: Pull requests

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

Formula code: llvm@19.rb on GitHub

Bottle (binary package) installation support provided for:

macOS on
Apple Silicon
tahoe
sequoia
sonoma
macOS on
Intel
sonoma
Linux ARM64
x86_64

Current versions:

stable 19.1.7

Other versions:

llvm@21 21.1.8 Next-gen compiler infrastructure
llvm@20 20.1.8 Next-gen compiler infrastructure
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

Keg-only

Depends on:

zstd 1.5.7 Zstandard is a real-time compression algorithm

Depends on when building from source:

cmake 4.4.2 Cross-platform make
ninja 1.13.2 Small build system for use with gyp or CMake
python@3.14 3.14.7 Interpreted, interactive, object-oriented programming language
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@19

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@19/lib/unwind -lunwind"

To use the bundled libc++ please use the following LDFLAGS:
    LDFLAGS="-L$HOMEBREW_PREFIX/opt/llvm@19/lib/c++ -L$HOMEBREW_PREFIX/opt/llvm@19/lib/unwind -lunwind"

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

Analytics:

30 days90 days365 days
Installs9091,61110,482
Installs (--HEAD)001
Installs on Request8611,4308,677
Installs on Request (--HEAD)001
Build Errors2