I've had this problem too. The effect was the <source>.gcno file never
showing up for object compilation.

I think a reasonable workaround is to simply pass profiling-enabled
builds to a real compiler, rather than trying to cache them.

Frediano Ziglio provides some details at
http://lists.samba.org/archive/ccache/2006q1/000216.html

Based on that, I created a really dumb/simple patch for the Debian
package to pass profiling-enabled builds to the compiler. It is attached.

-- 
\0
diff -ru ccache-2.4/ccache.c ccache-2.4-tp/ccache.c
--- ccache-2.4/ccache.c	2007-05-20 03:14:19.000000000 +1000
+++ ccache-2.4-tp/ccache.c	2007-05-20 03:17:54.000000000 +1000
@@ -641,6 +641,9 @@
 
 		/* these are too hard */
 		if (strcmp(argv[i], "-fbranch-probabilities")==0 ||
+		    strcmp(argv[i], "-fprofile-arcs") == 0 ||
+		    strcmp(argv[i], "-ftest-coverage") == 0 ||
+		    strcmp(argv[i], "--coverage") == 0 ||
 		    strcmp(argv[i], "-M") == 0 ||
 		    strcmp(argv[i], "-MM") == 0 ||
 		    strcmp(argv[i], "-x") == 0) {

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to