]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
added docs on CCACHE_PREFIX and info on using ccache with distcc
authorAndrew Tridgell <tridge@samba.org>
Sun, 16 Feb 2003 02:33:27 +0000 (03:33 +0100)
committerAndrew Tridgell <tridge@samba.org>
Sun, 16 Feb 2003 02:33:27 +0000 (03:33 +0100)
ccache.1
ccache.yo
web/ccache-man.html

index de6f8dc7ae3fbe111c0dce3e2b2a3f4a0246efb4..7f4a1d0f85128b683fafbd938547d77027f67aad 100644 (file)
--- a/ccache.1
+++ b/ccache.1
@@ -159,6 +159,11 @@ You can optionally set CCACHE_CC to force the name
 of the compiler to use\&. If you don\&'t do this then ccache works it out
 from the command line\&.
 .IP 
+.IP "\fBCCACHE_PREFIX\fP" 
+This option adds a prefix to the command line
+that ccache runs when invoking the compiler\&. Also see the section
+below on using ccache with distcc\&.
+.IP 
 .IP "\fBCCACHE_DISABLE\fP" 
 If you set the environment variable
 CCACHE_DISABLE then ccache will just call the real compiler,
@@ -267,6 +272,18 @@ compiler output that you would get without the cache\&. If you ever
 discover a case where ccache changes the output of your compiler then
 please let me know\&.
 .PP 
+.SH "USING CCACHE WITH DISTCC" 
+.PP 
+distcc is a very useful program for distributing compilation across a
+range of compiler servers\&. It is often useful to combine distcc with
+ccache, so that compiles that are done are sped up by distcc, but that
+ccache avoids the compile completely where possible\&.
+.PP 
+To use distcc with ccache I recommend using the CCACHE_PREFIX
+option\&. You just need to set the environment variable CCACHE_PREFIX to
+\&'distcc\&' and ccache will prefix the command line used with the
+compiler with the command \&'distcc\&'\&. 
+.PP 
 .SH "SHARING A CACHE" 
 .PP 
 A group of developers can increase the cache hit rate by sharing a
index 64f665e954072b830b0ddb1d63e48852e5a31155..8ff893f7ecac249ff026db84008e260bce4c3cf7 100644 (file)
--- a/ccache.yo
+++ b/ccache.yo
@@ -138,6 +138,10 @@ dit(bf(CCACHE_CC)) You can optionally set CCACHE_CC to force the name
 of the compiler to use. If you don't do this then ccache works it out
 from the command line.
 
+dit(bf(CCACHE_PREFIX)) This option adds a prefix to the command line
+that ccache runs when invoking the compiler. Also see the section
+below on using ccache with distcc.
+
 dit(bf(CCACHE_DISABLE)) If you set the environment variable
 CCACHE_DISABLE then ccache will just call the real compiler,
 bypassing the cache completely.
@@ -236,6 +240,18 @@ compiler output that you would get without the cache. If you ever
 discover a case where ccache changes the output of your compiler then
 please let me know.
 
+manpagesection(USING CCACHE WITH DISTCC)
+
+distcc is a very useful program for distributing compilation across a
+range of compiler servers. It is often useful to combine distcc with
+ccache, so that compiles that are done are sped up by distcc, but that
+ccache avoids the compile completely where possible.
+
+To use distcc with ccache I recommend using the CCACHE_PREFIX
+option. You just need to set the environment variable CCACHE_PREFIX to
+'distcc' and ccache will prefix the command line used with the
+compiler with the command 'distcc'. 
+
 manpagesection(SHARING A CACHE)
 
 A group of developers can increase the cache hit rate by sharing a
index 0c2ae19b50f73ac52e3ae5037a30098ad9c663c9..f343cc1897abce9f47fc29f877c930e2d9062ed9 100644 (file)
@@ -133,6 +133,9 @@ ccache itself.
 <p><p></p><dt><strong><strong>CCACHE_CC</strong></strong><dd> You can optionally set CCACHE_CC to force the name
 of the compiler to use. If you don't do this then ccache works it out
 from the command line.
+<p><p></p><dt><strong><strong>CCACHE_PREFIX</strong></strong><dd> This option adds a prefix to the command line
+that ccache runs when invoking the compiler. Also see the section
+below on using ccache with distcc.
 <p><p></p><dt><strong><strong>CCACHE_DISABLE</strong></strong><dd> If you set the environment variable
 CCACHE_DISABLE then ccache will just call the real compiler,
 bypassing the cache completely.
@@ -215,6 +218,16 @@ all warnings etc) from the cache.
 compiler output that you would get without the cache. If you ever
 discover a case where ccache changes the output of your compiler then
 please let me know.
+<p><h2>USING CCACHE WITH DISTCC</h2>
+    
+<p>distcc is a very useful program for distributing compilation across a
+range of compiler servers. It is often useful to combine distcc with
+ccache, so that compiles that are done are sped up by distcc, but that
+ccache avoids the compile completely where possible.
+<p>To use distcc with ccache I recommend using the CCACHE_PREFIX
+option. You just need to set the environment variable CCACHE_PREFIX to
+'distcc' and ccache will prefix the command line used with the
+compiler with the command 'distcc'. 
 <p><h2>SHARING A CACHE</h2>
     
 <p>A group of developers can increase the cache hit rate by sharing a