CocoaEngineering
FORMULAv19.1.7

llvm@19 for macOS

Next-gen compiler infrastructure

Installation on macOS (Apple Silicon & Intel)

brew install llvm-19

Package Metadata

Identifierllvm-19
Current Version19.1.7
Tap Repositoryhomebrew/core
LicenseApache-2.0 WITH LLVM-exception
Upstream Homepagehttps://llvm.org/
Last Verified2026-11-26T14:43:31Z

Runtime Dependencies (1)

zstd

Build Dependencies (3)

cmake ninja python@3.15

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@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.
Browse macOS Packages A–Z