Has anybody yet thought of integrating distcc with ccache?
If you don’t use distcc’s “pump” mode, then they work pretty well as separate programs that call each other. You can either set CC=’ccache distcc gcc’, or arrange for both ccache and distcc to be “masqueraded” on the path. (See the manual for information on how to install this.) Normally it is better for ccache to be run before distcc. This is very nearly as efficient as making them both part of a single program. The preprocessor will only run once and the preprocessed source will be passed from ccache straight to distcc. Having them separate allows them to be tested, debugged and released separately. Unless there’s a really strong argument to do otherwise, having two smaller programs is better practice, or at least more to my taste, than making one monolithic one. However, all of that said, now that we have “pump” mode, the trade-offs have changed. Using ccache prevents the use of “pump” mode. It would make sense to integrate caching into distcc so that you can get distributed preproc