[ccache] -MT / -MP / -MF gcc flags
Jean-Eric Cuendet
jean-eric.cuendet at linkvest.com
Thu Nov 21 13:55:00 EST 2002
Hi,
I patched ccache to accept -MT/MP/MF gcc flags (as used by automake v1.7).
It seems to work fine, but do someone really understand what are the
risks with that?
Is it possible that a cached result be returned while it should not?
Thanks.
-jec
Patch I made:
diff -Naur ccache-1.9-orig/ccache.c ccache-1.9-Mflags/ccache.c
--- ccache-1.9-orig/ccache.c 2002-05-12 11:55:35.000000000 +0200
+++ ccache-1.9-Mflags/ccache.c 2002-11-21 14:52:47.000000000 +0100
@@ -556,6 +556,9 @@
/* 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], "-MT") == 0 ||
+ strcmp(argv[i], "-MP") == 0 ||
+ strcmp(argv[i], "-MF") == 0 ||
strcmp(argv[i], "-MMD") == 0) {
args_add(stripped_args, argv[i]);
continue;
--
Jean-Eric Cuendet
Linkvest SA
Av des Baumettes 9, 1020 Renens Switzerland
Tel +41 21 632 9043 Fax +41 21 632 9090
E-mail: jean-eric.cuendet at linkvest.com
http://www.linkvest.com
--------------------------------------------------------
More information about the ccache
mailing list