[ccache] ccache - -frepo

andrew andrew.slater at discus.anu.edu.au
Wed Oct 1 15:08:22 EST 2003


Hi,

Should ccache always ignore compiles with (g++) -frepo, since object
files might have to be rebuilt at link time, due to c++ template object
code placement?  I bypassed caching for -frepo'd source files so my
template stuff would compile.

:)
andrew

diff -Naur ccache-2.3/ccache.c ccache-2.3-nofrepo/ccache.c
--- ccache-2.3/ccache.c 2003-09-28 14:48:17.000000000 +1000
+++ ccache-2.3-nofrepo/ccache.c 2003-10-01 14:06:12.000000000 +1000
@@ -630,6 +630,7 @@
  
                /* these are too hard */
                if (strcmp(argv[i], "-fbranch-probabilities")==0 ||
+                   strcmp(argv[i], "-frepo") == 0 ||
                    strcmp(argv[i], "-M") == 0 ||
                    strcmp(argv[i], "-MM") == 0 ||
                    strcmp(argv[i], "-x") == 0) {






More information about the ccache mailing list