llvm@20
brew install llvm@20
v20.1.8
Apache-2.0 WITH LLVM-exception
keg-only
LLVM 20 compiler infrastructure: C/C++ optimizer, code generator, and toolchain foundation (keg-only versioned formula).
Why you might care
Install LLVM 20 alongside other major versions when you need a specific stable release for building clang, lldb, or other LLVM-based tools, or when your project pins a particular LLVM version. Keg-only to avoid conflicts with the default llvm formula. Commonly a build dependency for languages and toolchains that target LLVM IR.
4.6k
30-day installs · #643
25.4k
90-day · #438
113.9k
365-day · #383
Runtime dependencies
Build dependencies
Links
- https://llvm.org/
- Brew formula source: Formula/l/llvm@20.rb
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@20 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@20/lib/unwind -lunwind" To use the bundled libc++ please use the following LDFLAGS: LDFLAGS="-L$HOMEBREW_PREFIX/opt/llvm@20/lib/c++ -L$HOMEBREW_PREFIX/opt/llvm@20/lib/unwind -lunwind" NOTE: You probably want to use the libunwind and libc++ provided by macOS unless you know what you're doing.
Keg-only reason
:versioned_formula
Blurb generated by claude-haiku-4-5 on today.
Raw metadata
{
"aliases": [],
"alternatives": [
"gcc",
"clang",
"llvm"
],
"build_dependencies": [
"cmake",
"ninja",
"python@3.14"
],
"categories": [
"compiler",
"build-system",
"library"
],
"caveats": "CLANG_CONFIG_FILE_SYSTEM_DIR: $HOMEBREW_PREFIX/etc/clang\nCLANG_CONFIG_FILE_USER_DIR: ~/.config/clang\n\nLLD is now provided in a separate formula:\n brew install lld@20\n\nUsing `clang`, `clang++`, etc., requires a CLT installation at `/Library/Developer/CommandLineTools`.\nIf you don\u0027t want to install the CLT, you can write appropriate configuration files pointing to your\nSDK at ~/.config/clang.\n\nTo use the bundled libunwind please use the following LDFLAGS:\n LDFLAGS=\"-L$HOMEBREW_PREFIX/opt/llvm@20/lib/unwind -lunwind\"\n\nTo use the bundled libc++ please use the following LDFLAGS:\n LDFLAGS=\"-L$HOMEBREW_PREFIX/opt/llvm@20/lib/c++ -L$HOMEBREW_PREFIX/opt/llvm@20/lib/unwind -lunwind\"\n\nNOTE: You probably want to use the libunwind and libc++ provided by macOS unless you know what you\u0027re doing.\n",
"conflicts_with": [],
"dependencies": [
"zstd"
],
"deprecated": 0,
"deprecation_reason": null,
"desc": "Next-gen compiler infrastructure",
"disable_reason": null,
"disabled": 0,
"enrichment_fetched_at": "2026-06-20T23:41:00+00:00",
"first_seen": "2026-06-20T23:34:18+00:00",
"full_name": "llvm@20",
"github_default_branch": null,
"github_last_commit_at": null,
"github_readme_excerpt": null,
"github_repo": null,
"github_stars": null,
"github_topics": [],
"homepage": "https://llvm.org/",
"homepage_og_description": null,
"homepage_og_image": null,
"homepage_title": "The LLVM Compiler Infrastructure Project",
"installs_30d": 4567,
"installs_365d": 113910,
"installs_90d": 25388,
"keg_only": 1,
"keg_only_reason": ":versioned_formula",
"last_seen": "2026-06-20T23:34:18+00:00",
"license": "Apache-2.0 WITH LLVM-exception",
"llm_generated_at": "2026-06-20T23:46:08+00:00",
"llm_model": "claude-haiku-4-5",
"name": "llvm@20",
"oldnames": [],
"one_liner": "LLVM 20 compiler infrastructure: C/C++ optimizer, code generator, and toolchain foundation (keg-only versioned formula).",
"optional_dependencies": [],
"rank_30d": 643,
"rank_365d": 383,
"rank_90d": 438,
"raw_hash": "eca25504ab33d65c",
"recommended_dependencies": [],
"revision": 0,
"ruby_source_path": "Formula/l/llvm@20.rb",
"tap": "homebrew/core",
"test_dependencies": [
"python@3.14"
],
"uses_from_macos": [
"libedit",
"libffi"
],
"version_head": null,
"version_stable": "20.1.8",
"versioned_formulae": [
"llvm@21",
"llvm@19",
"llvm@18",
"llvm@17",
"llvm@16",
"llvm@15",
"llvm@14",
"llvm@12"
],
"why_use_this": "Install LLVM 20 alongside other major versions when you need a specific stable release for building clang, lldb, or other LLVM-based tools, or when your project pins a particular LLVM version. Keg-only to avoid conflicts with the default llvm formula. Commonly a build dependency for languages and toolchains that target LLVM IR."
}