ccache
« Back to VersTracker
Description:
Object-file caching compiler wrapper
Type: Formula  |  Latest Version: 4.12.2@0  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: compiler cache c++ c build-tool performance
Install: brew install ccache
About:
ccache is a compiler wrapper that caches previous compilations and reuses them for subsequent builds, drastically reducing compilation times. It supports C, C++, Objective-C, and Objective-C++ compilers like GCC and Clang. This tool is particularly effective for incremental development and large projects.
Key Features:
  • Transparent compiler caching for C/C++/Obj-C
  • Supports distributed compilation via Redis
  • Detailed statistics and cache cleanup utilities
  • Hardlink/symlink support to minimize storage overhead
Use Cases:
  • Accelerating local iterative development cycles
  • Reducing CI/CD build times for large codebases
  • Sharing compilation caches across a developer team
Alternatives:
  • sccache – Mozilla's sccache supports cloud storage (S3) and distributed builds out of the box.
  • distcc – Focuses on distributing compilation across network hosts rather than caching local results.
License: GPL-3.0-or-later
Dependencies: blake3, fmt, hiredis, xxhash, zstd
Bottles available for: arm64_tahoe, arm64_sequoia, arm64_sonoma, sonoma, arm64_linux, x86_64_linux
Important Notes:
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.
Version History
Detected Version Rev Change Commit
Nov 26, 2025 7:51pm 0 VERSION_BUMP 8c94f64e
Oct 1, 2025 9:00pm 0 VERSION_BUMP 42f476fa
Sep 14, 2025 10:53pm 0 VERSION_BUMP aa5b1a57
Sep 12, 2025 9:27am 1 VERSION_BUMP 7d601392
Dec 30, 2024 4:59pm 3 VERSION_BUMP f88d8efc
Dec 27, 2024 10:35pm 3 VERSION_BUMP 9877506a
Dec 26, 2024 6:45pm 2 VERSION_BUMP aae384fb
Nov 17, 2024 8:34pm 1 VERSION_BUMP 67960da4