Is ccache worth it?

As far as I can tell on Mac OS X and Linux the answer is definitely. It halves the time for complete build.

It’s nice to set it up so that ccache is only used if the make file can detect it. This is a nice example of doing that:

CCACHE := $(shell command -v ccache 2> /dev/null) ifdef CCACHE CC := ccache $(CC) endif

Related pages