From: Andrew Tridgell Date: Sun, 28 Sep 2003 04:47:59 +0000 (+0200) Subject: allow more -M options and fix some typos X-Git-Tag: v2.3~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9fb6d909021eea55604a1be6ee3b096bcdf7e4eb;p=thirdparty%2Fccache.git allow more -M options and fix some typos --- diff --git a/ccache.c b/ccache.c index dffe14ab4..5f74d63f9 100644 --- a/ccache.c +++ b/ccache.c @@ -630,9 +630,8 @@ static void process_args(int argc, char **argv) /* these are too hard */ if (strcmp(argv[i], "-fbranch-probabilities")==0 || - (strncmp(argv[i], "-M", 2) == 0 && - strcmp(argv[i], "-MD") != 0 && - strcmp(argv[i], "-MMD") != 0) || + strcmp(argv[i], "-M") == 0 || + strcmp(argv[i], "-MM") == 0 || strcmp(argv[i], "-x") == 0) { cc_log("argument %s is unsupported\n", argv[i]); stats_update(STATS_UNSUPPORTED); diff --git a/ccache.yo b/ccache.yo index f33b3efaa..8c152754d 100644 --- a/ccache.yo +++ b/ccache.yo @@ -86,6 +86,7 @@ To install for the second method do something like this: verb( cp ccache /usr/local/bin/ ln -s /usr/local/bin/ccache /usr/local/bin/gcc + ln -s /usr/local/bin/ccache /usr/local/bin/g++ ln -s /usr/local/bin/ccache /usr/local/bin/cc ) This will work as long as /usr/local/bin comes before the path to gcc @@ -100,7 +101,7 @@ manpagesection(EXTRA OPTIONS) When run as a compiler front end ccache usually just takes the same command line options as the compiler you are using. The only exception to this is the option '--ccache-skip'. That option can be used to tell -ccache that the next option is definately not a input filename, and +ccache that the next option is definitely not a input filename, and should be passed along to the compiler as-is. The reason this can be important is that ccache does need to parse the @@ -270,10 +271,12 @@ following conditions need to be met: itemize( it() Use the same bf(CCACHE_DIR) environment variable setting + it() Set the bf(CCACHE_NOLINK) environment variable + it() Make sure everyone sets the CCACHE_UMASK environment variable + to 002, this ensures that cached files are accessible to everyone in + the group. it() Make sure that all users have write permission in the entire cache directory (and that you trust all users of the shared cache). - it() Make sure everyone sets the CCACHE_UMASK environment variable - to 002, this ensures that cached files are accessible to everyone. it() Make sure that the setgid bit is set on all directories in the cache. This tells the filesystem to inherit group ownership for new directories. The command "chmod g+s `find $CCACHE_DIR -type d`" might