llvm@21
21.1.8Next-gen compiler infrastructure
Install
brew install llvm@21Details
Sources
Supported platforms
| Architecture | Platforms | Version | Download |
|---|---|---|---|
| Apple Silicon | Golden Gate | 21.1.8 | FileSHA-25646e365b50a5f6f02543f610b7d0b86b6d8a0aa1ab437a615acc753720a6cc73d |
| Apple Silicon | Tahoe | 21.1.8 | FileSHA-256e3a3579a56ca64c479040de7eb4d0748efe369338216e81af2e59e3aed608c58 |
| Apple Silicon | Sequoia | 21.1.8 | FileSHA-25671f4ead77d52d42da9dd7f34441b45304474837b7ace887c7669048f830df6e6 |
| Apple Silicon | Sonoma | 21.1.8 | FileSHA-2561d8422fcaacee615ff78ba5ac530b8a141ce127087b3e861ba1faf972dc88256 |
| Intel | Sonoma | 21.1.8 | FileSHA-256e58f968196af2f0db01f546cae78792d0b0cf885641c380ec3efa10817f52d13 |
| ARM64 | Linux | 21.1.8 | FileSHA-256faaf642e58e4d98e64681beeaa811f269a88eeddeae4d53bc0626311f659d459 |
| x86_64 | Linux | 21.1.8 | FileSHA-2563e924cb91a56d752a2fb9ea4a01d02838df973611f59ff51747b60c4d67bf82b |
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@21 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@21/lib/unwind -lunwind" To use the bundled libc++ please use the following LDFLAGS: LDFLAGS="-L$HOMEBREW_PREFIX/opt/llvm@21/lib/c++ -L$HOMEBREW_PREFIX/opt/llvm@21/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.
