← all formulas

Next-gen compiler infrastructure

Version
v22.1.5
License
Apache-2.0 WITH LLVM-exception
Tap
homebrew/core
Bottle
available
Revision
bottledlicense declaredhomepageactivekeg-linked

Install

shell
$ brew install llvm

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 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.

Aliases

llvm@22

Command palette

Jump anywhere, search packages, change settings.

llvm - Homebrew Formula | BrewDB