llvm@20

Popular
Formula Development v20.1.8

Next-gen compiler infrastructure

About

Install llvm@20 on macOS with Homebrew Formula using `brew install llvm@20`. llvm@20 is a Development command-line package with version 20.1.8. The package is listed in homebrew/core.

Install 1 App in Terminal
$
brew install llvm@20
Source: homebrew/core Website Homebrew

Dependencies

Build Dependencies

Installation Notes

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@20

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

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

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

Official Homebrew Stats

Install activity metrics for llvm@20.

+2.0% vs 90d avg
30 Days
1.8K total installs
61 installs / day avg
90 Days
5.3K total installs
59 installs / day avg
1 Year
93.4K total installs
256 installs / day avg

Frequently asked questions

How do I install llvm@20 with Homebrew?

Run brew install llvm@20 in Terminal to install llvm@20 as a Homebrew formula on macOS.

What kind of package is llvm@20?

llvm@20 is a Development Homebrew formula and FastBrew currently shows version 20.1.8.

What should I review before installing llvm@20?

Review the runtime dependencies (zstd) and build dependencies (cmake, ninja, python@3.15) along with any caveats before installing.

Related Development Apps

View all

ca-certificates

Popular

Mozilla CA certificate store

openssl@3

Popular

Cryptography and SSL/TLS Toolkit

sqlite

Popular

Command-line interface for SQLite

node

Popular

Open-source, cross-platform JavaScript runtime environment

pcre2

Popular

Perl compatible regular expressions library with a new API

pkgconf

Popular

Package compiler and linker metadata toolkit