FastBrew

Formula v22.1.8

llvm@22

Next-gen compiler infrastructure

$
brew install llvm@22
License
Apache-2.0 WITH LLVM-exception
Website
llvm.org

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

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

To use the bundled libc++ please use the following LDFLAGS:
  LDFLAGS="-L$HOMEBREW_PREFIX/opt/llvm@22/lib/c++ -L$HOMEBREW_PREFIX/opt/llvm@22/lib/unwind -lunwind"
Features newer than system libc++ will require the following define to enable:
  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.

Homebrew installs

-68.7% vs 90 day average
30 days
5.6K
186 a day
90 days
53.5K
594 a day
1 year
66.1K
181 a day
View all

formula Development

node

Open-source, cross-platform JavaScript runtime environment

formula Development

pcre2

Perl compatible regular expressions library with a new API