OpenBSD Handbook

Current snapshot · amd64 · Generated 2026-09-09

ccache-4.14

C/C++ compiler front-end to cache compiled object code

Back to search · Project homepage

Description

ccache is a compiler cache. It acts as a caching pre-processor to C/C++ compilers, utilizing compiler output and a hash to detect when a compilation can be satisfied from cache. This often results in a 5 to 10 times speedup in common compilations. The most important aspect of ccache is to _always_ produce exactly the same output that the real compiler would produce. This includes providing exactly the same object files and exactly the same compiler warnings that would be produced if you use the real compiler. ccache typically adds a little bit of a slowdown to uncached compiles, but makes up for it with drastic speedups in already-seen compiles that it has cached.

Package information

Ports path
devel/ccache
Package architecture
amd64
Maintainer
The OpenBSD ports mailing-list <ports@openbsd.org>
Categories
devel
Available flavors
None listed
Only for architectures
aarch64, amd64, arm, i386, mips64, mips64el, powerpc, powerpc64, riscv64, sparc64, alpha, hppa

These are ports metadata. Binary availability depends on the release, architecture and mirror. Build and test dependencies are not an installation checklist.

Direct dependencies

Library

Build

Test

Installing and updating packages · Package details as JSON