Skip to the content
Know your tech before you buy it. Makers: get listed from $49/mo

Ccache

ccache.dev

  • Free plan
  • Windows
  • macOS
  • Linux
  • Self-hosted
7.9 Club score Visit ccache.dev

What Ccache is

Ccache is a free build tool that reduces repeated compilation work by storing prior results and recognizing repeated single-file compilations. It supports compilers such as GCC, Clang and MSVC, and languages including C, C++, assembler, CUDA, Objective-C and Objective-C++, with support varying by compiler and language. Runtime support includes Linux, macOS and native Windows, as well as Windows with MSYS2 and other Unix-like systems at a different support level. Direct and depend modes can avoid running the preprocessor. Remote caching is available through adaptable storage backends, with helpers for HTTP, HTTPS and Redis protocols. Ccache records cache-hit and cache-miss statistics, manages cache size and supports Zstandard compression. It uses BLAKE3 for its main input hash and XXH3 checksums to detect cache-data corruption. It works with build systems including Make, CMake, Ninja and Visual Studio. Its scope has limits: multi-file compilation, linking and compilations using unsupported flags fall back to the real compiler. The project also notes that cache misses add overhead and recommends measuring typical workloads.

Who it suits

Ccache suits developers and build teams who repeatedly compile single files and want to reuse prior results. It supports common build systems, with compiler and language support varying.

Good to know, and what to watch

  • Supports GCC, Clang, MSVC and other compilers.
  • Direct and depend modes can skip preprocessing.
  • Remote caching supports adaptable storage backends.
  • Tracks cache statistics and manages cache size.
  • Works with Make, CMake, Ninja and Visual Studio.
  • Multi-file compilation and linking fall back to the real compiler.
  • Unsupported flags also fall back to the real compiler.
  • Cache misses add overhead, according to the project.
  • Compiler and language support varies.

Ccache

Free

Free plan

Getting started

  1. Open the Ccache website
  2. Choose a source archive or binary for Linux, macOS, or Windows
  3. Install Ccache for your operating system
  4. Connect it to a supported compiler and build system
  5. Configure local or adaptable remote cache storage
  6. Review cache hit and miss statistics

Limits to check

Ccache caches one-file compilations only; multi-file compilation, linking, and builds using unsupported flags fall back to the real compiler. Cache misses typically add 5%–20% overhead, or 1%–3% with depend mode enabled.

The verdict

Ccache can reuse results for repeated single-file compilations and offers local and remote cache options. Its limits and cache-miss overhead make it worth measuring against typical workloads.

Questions people ask

Is Ccache free?

Yes. Ccache is free software under the GNU General Public License version 3 or later.

Which platforms can run Ccache?

Runtime support includes Linux, macOS, native Windows, Windows with MSYS2, and other Unix-like platforms.

Which compilers and languages are supported?

Compilers include GCC, Clang, MSVC, NVCC, Intel C++, QNX, and EDG-based compilers. Languages include C, C++, assembler, CUDA, Objective-C, and Objective-C++, with support varying by compiler and language.

Can Ccache use a remote cache?

Yes. Adaptable storage backends can connect to remote protocols, with listed helpers for HTTP, HTTPS, Redis, rediss, and redis+unix.

Which build systems work with Ccache?

The listed build systems are Make, CMake, Ninja, and Visual Studio.

What the maker publishes

Cache management
It records cache hit and miss statistics and automatically manages cache size. source
Cache management
It tracks cache hit and miss statistics and manages cache size automatically. source
Cache modes
Direct and depend modes can avoid running the preprocessor. source
Cache modes
Direct and depend modes can avoid running the preprocessor. source
Compilation limits
Ccache handles compilation of one file at a time; multi-file compilation and linking fall back to the real compiler. source
Compilers
It supports GCC, Clang, MSVC and other similar compilers, with support levels varying by compiler. source
Compilers
The site lists GCC, Clang, MSVC, and other similar compilers, with support levels varying by compiler. source
Compression and hashes
Ccache supports Zstandard compression, uses BLAKE3 for its main input hash, and uses XXH3 checksums to detect cache corruption. source
Compression and hashing
Ccache supports Zstandard compression, uses BLAKE3 for the main input hash and uses XXH3 checksums to detect cache data corruption. source
Downloads
The download page lists source archives, macOS and Linux binaries, and a Windows x86_64 binary for version 4.14.1. source
Integrity caveat
The site notes that direct mode has a corner case that can cause false-positive cache hits. source
Languages
It supports C, C++, assembler, CUDA, Objective-C and Objective-C++, with support levels varying by language. source
Languages
It supports C, C++, assembler, CUDA, Objective-C, and Objective-C++. source
License
Ccache is free software released under the GNU General Public License version 3 or later. source
Limitations
Ccache only caches compilation of a single file; multi-file compilation and linking fall back to the real compiler, as do compilations using unsupported flags. source
Maintainer
Ccache has been developed and maintained by Joel Rosdahl since 2010. source
Maintainer
Ccache has been developed and maintained by Joel Rosdahl since 2010. source
Operating systems
Runtime support includes Linux, macOS and native Windows at support level A, plus Windows with MSYS2 and other Unix-like platforms at level B. source
Performance caveat
The site says cache misses typically add 5%–20% overhead, or 1%–3% with depend mode enabled, and recommends measuring typical workloads. source
Platforms
Runtime support is rated A for Linux, macOS, and native Windows; other Unix-like platforms and Windows with MSYS2 are rated B. source
Purpose
Ccache speeds up recompilation by caching previous compilations and detecting when the same compilation is repeated. source
Purpose
Ccache speeds up recompilation by caching previous compilations and reusing results when the same compilation is repeated. source
Release verification
Release archives starting with version 4.12 are signed with minisign, and the download page explains how to verify them. source
Remote caching
Ccache supports remote caching through custom storage backends that can be adapted to remote storage protocols. source

Checked against the maker's pages on 30 Sept 2026.