# ccache

> Compiler cache that speeds up C and C++ rebuilds

Source: https://talira.ai/catalog/ccache-qm2ms2e1
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool
- Categories: [developer tools / build / caching](https://talira.ai/categories/developer-tools/build/caching), [languages / c cpp](https://talira.ai/categories/languages/c-cpp)
- Platforms: linux, macos, windows, cli
- Licence: GPL-3.0-or-later
- Pricing: Free and open source
- Free tier: yes
- Self-hostable: yes

ccache speeds up recompilation of C and C++ (and related languages) by caching previous compilations and detecting when the same compilation is being done again. It wraps the compiler, so it works with existing build systems like Make and [CMake](https://talira.ai/catalog/cmake-k3qq1fry.md). It is a long-standing, widely packaged tool.

## Links

- Website: https://ccache.dev
- GitHub: https://github.com/ccache/ccache
- Docs: https://ccache.dev/documentation.html

## Ways to install

### Package managers

- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/ccache>[^1]
- [APT](https://talira.ai/catalog/apt-d7essv0z.md): <https://packages.debian.org/stable/ccache>[^2]
- [mise](https://talira.ai/catalog/mise-0axr08xw.md): <https://mise-versions.jdx.dev/tools/ccache>[^3]

## Problems it solves

- make clean then make takes forever on our C++ project
- switching git branches forces a full rebuild of the C code
- speed up repeated compiles of the Linux kernel or a big C++ codebase
- CMake builds in CI recompile every file even when nothing changed
- cache compiler output without changing the build system
- rebuilding after touching a header is slow even though most objects are identical
- Android/AOSP style builds take hours from scratch
- share a compile cache across build directories on the same machine

## Features

- transparent compiler wrapping
- direct and depend modes that skip the preprocessor
- remote caching with custom storage backends
- C, C++, assembler, CUDA, Objective-C

## Capabilities

- Has a command line tool: plan not known

## Trust

Overall: 0.64 out of 1.
Signals: maintenance 1.00, adoption 0.70, momentum 0.36, community 0.95, backing 0.00, extensibility 0.20.

- last commit 13 days ago
- 95 commits in the last 90 days
- latest release v4.14.3 15 days ago
- 3.0k GitHub stars
- 235 contributors

## Alternatives

- [Kache](https://talira.ai/catalog/kache-j5q2h9jj.md): Build once. Reuse the work.
- [sccache](https://talira.ai/catalog/sccache-3e1w9xr3.md): Shared compilation cache for C, C++, Rust and CUDA, stored locally or in the cloud
- [Bazel](https://talira.ai/catalog/bazel-5qvenp12.md): a fast, scalable, multi-language and extensible build system

## Sources

[^1]: https://formulae.brew.sh/api/formula.json (checked 21 Nov 2026)
[^2]: https://deb.debian.org/debian/dists/stable/main/source/Sources.xz (checked 21 Nov 2026)
[^3]: https://mise-versions.jdx.dev/tools.json (checked 21 Nov 2026)
