Ccache

Joel Rosdahl·Ccache.Ccache

Ccache is a compiler cache. It speeds up recompilation by caching previous compilations and detecting when the same compilation is being done again.

Ccache is a compiler cache. It speeds up recompilation by caching previous compilations and detecting when the same compilation is being done again. Ccache is free software, released under the GNU General Public License version 3 or later.

winget install --id Ccache.Ccache --exact --source winget

Latest 4.14.4·November 30, 2026

Release Notes

Bug fixes and improvements

  • Fixed tracking of headers included by indented MSVC include directives, preventing stale direct mode hits if such headers change. [contributed by Andreas Ringlstetter]
  • Fixed false cache hits when a macro definition changes in the source or a header used to create an MSVC precompiled header with /Yc. [contributed by Dirk Reinbach]
  • Made ccache fall back to MSVC for options that explicitly produce or consume C++20 modules. Ccache also tracks IFC files in the working directory for implicit imports. [contributed by Chris Burr]
  • Made ccache fall back to the compiler for too hard MSVC option /dynamicdeopt. [contributed by Dirk Reinbach]
  • Fixed a bug where compiling with -v could report the include search paths from an earlier compilation. This could cause CMake to detect the wrong implicit include directories. [contributed by Dmitry Sergeevich]
  • Ccache now preserves hyperlinks in GCC diagnostics. [contributed by GitHub user Peter0x44 and Joel Rosdahl]
  • Fixed preprocessing with prefix_command_cpp and multiple -arch options. [contributed by Andreas Ringlstetter]
  • Fixed compiler identification when ccache is used as a launcher and the compiler path is itself a symlink or hard link to ccache. [contributed by Andreas Winther and Joel Rosdahl]
  • Fixed fallback to the compiler when DEPENDENCIES_OUTPUT, SUNPRO_DEPENDENCIES or the MSVC variables CL or CL are set. [contributed by Dirk Reinbach]
  • Made ccache fall back to the compiler when converting an argument path fails. Invalid character sequences count as bad compiler arguments and other system errors during argument processing count as internal errors. [contributed by GitHub user steve_cooks and Joel Rosdahl]
  • Fixed cache hits with -o /dev/null and file_clone or hard_link so they leave the null device intact. [contributed by Dirk Reinbach]
  • Ccache now updates the timestamps of files it clones or copies from the cache. On Windows, it now sets file timestamps with subsecond precision. Both changes help prevent unnecessary rebuilds. [contributed by Dirk Reinbach]
  • Made ccache preserve successful compilations when serializing a result or storing a raw file fails. This covers cases such as concurrent MSVC compilations writing to the same /sourceDependencies output. [contributed by Dirk Reinbach and Joel Rosdahl]
  • Fixed temporary file cleanup after failed local cache writes. [contributed by Joel Rosdahl]
  • Made cache writes on Windows more reliable when antivirus or other software briefly holds files open. Ccache replaces open files when Windows allows it and retries renames on access or sharing errors. [contributed by Dirk Reinbach]
  • Fixed error messages for failed renames and copies on Windows and prevented a crash when Windows has no message for an error code. [contributed by Dirk Reinbach]

Test improvements

  • Fixed storage helper tests in working directories with long paths. [contributed by Joel Rosdahl]

Installer type: zip

x64—E3084BD3660319DD27D561EDB95E33A926B11CA1617985EA50ED8A2EC24FE80E
arm64—E69A95DDC9772EB14DDA60FD1E0CBB7B4B16F8A92F130654139F7F3EDEBC2B15

Details

Homepage
https://github.com/ccache/ccache
License
GPL-3.0
Publisher
Joel Rosdahl
Support
https://github.com/ccache/ccache/discussions
Moniker
ccache

Tags

cc++ccachecompilationcross-platformopen-sourceoptimizationspeedup

Older versions (23)

4.14.3
x64—C845C3D65BE81954C75659145A522A793A27586BF940C5DCFE18AF33FA1A67DD
arm64—4C12EE652936C83B7730FF16F93C86E9E905A91AED9549CE1304185F33C8B3E4
4.14.2
x64—6993CE645E53192CEC592EE23186200B574AC4C59097ECDE8D9CFD681B47AE84
arm64—47EA5A0ED661BEA53962D8FB8EE9A1769092D979A6F7C73D3081499B3305B2AB
4.14.1
x64—6219F3865CA59AEC41EE4B678DF171D5D35855ECB2B6DBBBD20690B3A68AF7B4
arm64—28121851C8C2C8B76214CFC5E119D769FBC39E93D27862E4E3A556905EBD23B2
4.14
x64—2568347A697E103CA1B073981C704AD76FB2507D066C38DBA038DD73399D968F
arm64—BAA07085F68F75EA033D6F8D8FE6B53B7F353050BD191E299FF27E131CC3D787
4.13.6
x64—3D7CEBB05850AD704E197B3F1D3F0F924AB6C9FDFC561578E146184FE9D89380
arm64—BEC01846B06D6D87BF35EDA50544D7C8BF9B9A4859F218417A7081AA45D7FD47
4.13.5
x64—6685AA505F0A95A3A6D8B6C1B6FAB1DEFF29628E44DED4A5760E4EFE1742A736
arm64—132FCDD2249F2EBC3DC7FDE5AC65A44643FDE07D3D55CD4DFB3364FB689C63C2
4.13.4
x64—12E8958EF3FC1FECCEB650D46E4DB5D0855C778312C70EEDD3A2DA344FD0A698
arm64—8244297FBB8130E376B7E6242D30E5D92D498EBAAEC7C993366444AB94427C36
4.13.3
x64—F445BF8A01D056461A8CE55972CF36D01D5BA009656D7E935D06C5A36927311E
arm64—2F1650F2921DB31B981F73282E1BB209142F139C3AEEBDC3E03EC7903AE77A04
4.13.2
x64—6FD36619985B36DA4D765851DBA9F1BAECB0539394330693D146B86D37FE8683
arm64—7D443854A4D818313AD5F0EFF5F71BBAD85F271978C58F63D27296D8B61FB577
4.13.1
x64—1C78A0B816A3174D4B170B96294E016A21FB4A577DFD8361E7322F77F85C6348
arm64—5907C8F74DCFFF920EE57DF55A5CB98164630665926B2BA9085E9F5FB701C58F
4.13
x64—E0FD1197FE979E9C8CD44A418A67EF4076D788806389F37AB4601C32AC8BA753
arm64—9D3030850F8B933A814B5BAFD5168026EF606E4BEFBB1868E659336B2DAE4C55
4.12.3
x86—ED9624055CCF06854CEFCC521611CE5944ED41F5DDDA558995868A37B5174396
x64—859141059AC950E1E8CD042C66F842F26B9E3A62A1669A69FE6BA180CB58BBDF
4.12.2
x86—0CF9AE22C358B37ED41DC44705008A2CC7A2837FC08E51821ACF399B9D673A83
x64—82C1B130B25CC162531DC7A062DC5EA99349CD536BC9EBA8A66D976802D66516
4.12.1
x86—2012B76631366DDED52C3A983D8BDA154DD76BADB05BD6D8CDE63E184CD5538A
x64—98AEA520D66905B8BA7A8E648A4CC0CA941D5E119D441F1E879A4A9045BF18F6
4.12
x86—C046AD7159D312312662C380DA5932D441407F56164E451B09C16DAD8DB01051
x64—85C963B154DCF5E38DC6839D660218433A3B0B86387C302675D236E17AE7220D
4.11.3
x86—AD0248EDCCE9959FE4075DDC41496A099366B0C785AEE062A8D59D26C1385178
x64—BFD031CAD091B7DB7E68C3303BE542B0F7FEE7A3E716D76EC6F7E6C7EF4B3526
4.11.2
x86—35F24ADCFF64A95A99EAFCFE5B0A0A4C69FBA950825091BA82A9984D90EBAE84
x64—1F39F3AD5AAE3FE915E99AD1302633BC8F6718E58FA7C0DE2B0BA7E080F0F08C
4.11.1
x86—BAB075A6B96CD8675164B2BDC1104021E1F1FECDA21C53B7FF56545842B112B4
x64—1FCCFFF3D22DC05BAD61073FE050398BA8CD99395DD21D0EA1397B96FA2B508E
4.11.0
x86—D0D84BCDA3FC32F1F898AA24249C646F553CE4C6A329A99D4D364532F5D6A590
x64—47BBEEFC588EC3DE4EF6E5006FEB11771BFE3B30380FACF24605352B2D6EC04D
4.10.2
x86—30BD081F45F92AFFE74B776F19B8872A09B6B5DF3EC6C43C552863D73C804871
x64—6252F081876A9A9F700FAE13A5AEC5D0D486B28261D7F1F72AC11C7AD9DF4DA9
4.10.1
x86—BFBA3FB4BE293DE5C2BE5990E2DC44DA2CD863CACF9739B4ACDFFA23CA7A5E67
x64—06B26CCE440F54B9EFFD7766075F05C4EC051859BD24B9969CAB66855BF07DFB
4.10
x64—B62CEF76EDB9EC74A9E27D15A3B045D83E80F5BDB7DEBC6CBEA6D617971CC6ED
x86—580457ADD282B6A36A987E4CD8C17D02D094AF356E46954388A132AB714C259A
4.9.1
x64—D0836518CFDB74CC765A6BC6C353009367D8FC15DBBEC4899EBDBEB750A07F77
x86—3E40644FEE4A1FE5DAD135C36DA180C1C0EAEDF41BF86D483C4C5FFAC7DE5E93