🍺 BREW Explorer

← all formulae

ccache

brew install ccache v4.13.6_1 GPL-3.0-or-later

Compiler cache wrapper that speeds up rebuild times by caching object files across projects.

Why you might care

Dramatically reduces compile time for repeated builds of the same code (especially in CI/CD). Acts as a transparent drop-in wrapper for GCC, Clang, and other C/C++ compilers. Popular in large codebases and monorepos where recompilation is frequent; works across different projects with the same source.

Categories

Alternatives

sccache meson ninja
20.9k
30-day installs · #230
71.4k
90-day · #221
302.6k
365-day · #214

Runtime dependencies

Build dependencies

Links

Caveats

To install symlinks for compilers that will automatically use
ccache, prepend this directory to your PATH:
  $HOMEBREW_PREFIX/opt/ccache/libexec

If this is an upgrade and you have previously added the symlinks to
your PATH, you may need to modify it to the path specified above so
it points to the current version.

NOTE: ccache can prevent some software from compiling.
ALSO NOTE: The brew command, by design, will never use ccache.

Blurb generated by claude-haiku-4-5 on today.

Raw metadata
{
  "aliases": [],
  "alternatives": [
    "sccache",
    "meson",
    "ninja"
  ],
  "build_dependencies": [
    "asciidoctor",
    "cmake",
    "cpp-httplib",
    "doctest",
    "pkgconf",
    "span-lite",
    "tl-expected"
  ],
  "categories": [
    "compiler",
    "build-system"
  ],
  "caveats": "To install symlinks for compilers that will automatically use\nccache, prepend this directory to your PATH:\n  $HOMEBREW_PREFIX/opt/ccache/libexec\n\nIf this is an upgrade and you have previously added the symlinks to\nyour PATH, you may need to modify it to the path specified above so\nit points to the current version.\n\nNOTE: ccache can prevent some software from compiling.\nALSO NOTE: The brew command, by design, will never use ccache.\n",
  "conflicts_with": [],
  "dependencies": [
    "blake3",
    "fmt",
    "hiredis",
    "openssl@3",
    "xxhash",
    "zstd"
  ],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "Object-file caching compiler wrapper",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:36:12+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "ccache",
  "github_default_branch": null,
  "github_last_commit_at": null,
  "github_readme_excerpt": null,
  "github_repo": null,
  "github_stars": null,
  "github_topics": [],
  "homepage": "https://ccache.dev/",
  "homepage_og_description": null,
  "homepage_og_image": null,
  "homepage_title": "Ccache \u2014 Compiler cache",
  "installs_30d": 20854,
  "installs_365d": 302566,
  "installs_90d": 71405,
  "keg_only": 0,
  "keg_only_reason": null,
  "last_seen": "2026-06-20T23:34:18+00:00",
  "license": "GPL-3.0-or-later",
  "llm_generated_at": "2026-06-20T23:43:33+00:00",
  "llm_model": "claude-haiku-4-5",
  "name": "ccache",
  "oldnames": [],
  "one_liner": "Compiler cache wrapper that speeds up rebuild times by caching object files across projects.",
  "optional_dependencies": [],
  "rank_30d": 230,
  "rank_365d": 214,
  "rank_90d": 221,
  "raw_hash": "7eb5188fae223ca9",
  "recommended_dependencies": [],
  "revision": 1,
  "ruby_source_path": "Formula/c/ccache.rb",
  "tap": "homebrew/core",
  "test_dependencies": [],
  "uses_from_macos": [],
  "version_head": "HEAD",
  "version_stable": "4.13.6",
  "versioned_formulae": [],
  "why_use_this": "Dramatically reduces compile time for repeated builds of the same code (especially in CI/CD). Acts as a transparent drop-in wrapper for GCC, Clang, and other C/C++ compilers. Popular in large codebases and monorepos where recompilation is frequent; works across different projects with the same source."
}