Joachim Schipper wrote:
I think that the best way for me to use ccache is to be able to
revector the CC and C++ compilers ... but I'm not certain, could I just
put something like
"make CC=ccache build"
as my main compilation command (after, of course, I do the dependencies)
and get the compioler revectored to my ccache tool?
http://marc.theaimsgroup.com/?l=openbsd-misc&m=109043549403999&w=2 seems
to suggest that putting the appropriate CC= line in /etc/mk.conf might
work; this is not documented in mk.conf(5).
http://marc.theaimsgroup.com/?l=openbsd-ports&m=116060629621783&w=2
suggests likewise, and points to another possible solution, provided you
have quite a few Zauruses.
Dont forget, ccache does a checksum of the preprocessed .c file and the
compiler in order to not use old .o's if your compiler is replaced.
When doing a "make build", the compiler is rebuilt _twice_, so you are
definately guaranteed not to ever get any gain from ccache on "make build"s.
As for distcc, various parts of the build tree have makefiles that can
handle -jX, whereas others might not. Noone seems to have researched
which parts do as of now.