40

I am aware that scons implements the functionality of ccache, but I am stuck with another build system.

I also know there is a gocache project on SourceForge that aims to implement ccache-like functionality for other compilers, but it seems not complete.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
amit kumar
  • 20,438
  • 23
  • 90
  • 126

5 Answers5

34

A shameless plug, but I wrote a Python script which attempts to work just like ccache, except that it can wrap MSVC. See https://github.com/frerich/clcache

Frerich Raabe
  • 90,689
  • 19
  • 115
  • 207
7

There's an unofficial patch to ccache to support MSVC, but I haven't yet tried it myself...

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Chris Dolan
  • 8,905
  • 2
  • 35
  • 73
  • All information went away and there's no more textual description of how that was accomplished – eri0o Jul 24 '21 at 21:13
  • Nowadays, ccache has "B" level support for MSVC: https://ccache.dev/platform-compiler-language-support.html So that patch is not needed anymore. – Ignitor Sep 15 '22 at 09:43
4

https://github.com/inorton/cclash

It is a bit more of a plug. I've been using it to shave about 35% off our Cygwin Visual Studio 2012 builds.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
IanNorton
  • 7,145
  • 2
  • 25
  • 28
3

Stashed

It supports PDB, PCH, and has a nice dashboard.

js.mouret
  • 415
  • 4
  • 8
3

Incredibuild is very nice, though it is more like distcc for Visual Studio than ccache.

If you want both ccache and distcc for a Visual Studio environment, try Stashed along with Incredibuild at the same time. It works a lot like ccache + distcc for Linux, without the configuration or administrative overhead.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131