Skip to content

llvm

Popular
Formula Development v22.1.8

Next-gen compiler infrastructure

When to use

Next-gen compiler infrastructure. Use llvm when you want a widely used development command-line package that can be installed and updated through Homebrew. It is one of FastBrew's top packages by Homebrew installs, with about 912.5K installs over the last year.

Install 1 App in Terminal
$
brew install llvm
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

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/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"
Features newer than system libc++ will require the following define to enable
(support for this may be removed in a future major LLVM release):
  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.

Official Homebrew Stats

Install activity metrics for llvm.

-2.8% vs 90d avg
30 Days
89.2K total installs
3.0K installs / day avg
90 Days
275.4K total installs
3.1K installs / day avg
1 Year
912.5K total installs
2.5K installs / day avg

Related Development Apps

View All
Open openssl@3
openssl@3
Popular

Cryptography and SSL/TLS Toolkit

formula Development v3.6.3
Open ca-certificates
ca-certificates
Popular

Mozilla CA certificate store

formula Development v2026
Open sqlite
sqlite
Popular

Command-line interface for SQLite

formula Development v3.53.3
Open node
node
Popular

Open-source, cross-platform JavaScript runtime environment

formula Development v26.5.0
Open pcre2
pcre2
Popular

Perl compatible regular expressions library with a new API

formula Development v10.47
Open pkgconf
pkgconf
Popular

Package compiler and linker metadata toolkit

formula Development v2.5.1
X