Formula

llvm@22

22.1.8

Next-gen compiler infrastructure

Install

brew install llvm@22

Details

Sources

Supported platforms

ArchitecturePlatformsVersionDownload
Apple SiliconGolden Gate22.1.8File
SHA-2563979809f7ab4398bbb738355bd32b186911800faef497b85a1ce8ca3bd6ee1a3
Apple SiliconTahoe22.1.8File
SHA-256a321c5b4ac3657f54fab8fe455146c9f15c0b4f074983c822dba955fb04e0840
Apple SiliconSequoia22.1.8File
SHA-2569705fde2a45b982f91bdfe60d1023fabf12266e67d24ba7bacc963c2950174d1
ARM64Linux22.1.8File
SHA-25694785e8ca8fcf820119a423f17fed2153c49b78768f12e81062a3a3c2d47ddbf
x86_64Linux22.1.8File
SHA-2566a24b4e413983d48cebda87e1d3e7a19287e07213d84a18825d52ab0638ab4ba

Dependencies

  • zstd

Package data

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