[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: ccache and distcc
From:       Lubos Lunak <l.lunak () suse ! cz>
Date:       2003-02-05 11:36:34
[Download RAW message or body]

On Wednesday 05 of February 2003 17:07, Pupeno wrote:
> Is anybody here using ccache and distcc to build KDE ?
> I changed by hand the variables in Makefile to use ccache and it worked,
> how can I make it automatically ?
> And to mix distcc and ccache should I call "distcc ccache gcc" ?

 I use both, the dist.tar.bz2 attachment is what I have in ~/.bin, which is in 
the first entry in $PATH. Given that ccache is almost worthless for anything 
but recompiles after updating CVS (and even then I don't get much higher than 
50% hits), the scripts use ccache only for CVS rebuilds. 'dmake' is 'make' 
using distcc, 'kdecvs' is for CVS rebuilds (I have sources in 
~/build/src/kdelibs etc. and builddir is ~/build/suse/kdelibs etc., the 
script is run from builddir). 'ccache' is simply ccache, picking the right 
ccache repository based on current directory (I use different ccache 
repositories for different CVS modules, so that they don't make each other go 
away from the cache) - I don't call this script directly though. 'kde3' is a 
script setting up $KDEDIR etc. for my working KDE build, you may want to 
remove it from the kdecvs script.

 Note that last time I checked, ccache needed the attached patch in order to 
work with gcc3+.

-- 
Lubos Lunak
KDE developer
---------------------------------------------------------------------
SuSE CR, s.r.o.  e-mail: l.lunak@suse.cz , l.lunak@kde.org
Drahobejlova 27  tel: +420 2 9654 2373
190 00 Praha 9   fax: +420 2 9654 2374
Czech Republic   http://www.suse.cz/

["dist.tar.bz2" (application/x-tbz)]
["ccache.c.patch" (text/x-diff)]

--- ccache.c.sav	2002-05-12 11:55:35.000000000 +0200
+++ ccache.c	2002-11-18 21:55:01.000000000 +0100
@@ -556,10 +556,21 @@ static void process_args(int argc, char 
 		/* cope with -MD, -MM, -MMD before the code below chucks them */
 		if (strcmp(argv[i], "-MD") == 0 ||
 		    strcmp(argv[i], "-MM") == 0 ||
-		    strcmp(argv[i], "-MMD") == 0) {
+		    strcmp(argv[i], "-MMD") == 0 ||
+		    strcmp(argv[i], "-MP") == 0) {
 			args_add(stripped_args, argv[i]);
 			continue;
 		}
+                
+                if (strcmp(argv[i], "-MT") == 0 ||
+                    strcmp(argv[i], "-MF") == 0 ) {
+                    if (i+1<argc) {
+                        args_add(stripped_args, argv[i]);
+                        args_add(stripped_args, argv[i+1]);
+                        ++i;
+                        continue;
+                    }
+                }
 
 		/* check for bad options */
 		if (strncmp(argv[i], "-M", 2) == 0) {

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic