From: Andrew Tridgell Date: Wed, 27 Mar 2002 08:02:24 +0000 (+0100) Subject: handle -isystem= better X-Git-Tag: v1.0~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c280499c33e39337c210ea84a0b0fe4ddbff6f6;p=thirdparty%2Fccache.git handle -isystem= better --- diff --git a/ccache.c b/ccache.c index d1c67e132..aa7e881a7 100644 --- a/ccache.c +++ b/ccache.c @@ -118,7 +118,7 @@ static void stabs_hash(const char *fname) failed(); } - /* we use mmap() to make it easy to handle arbitraryily long + /* we use mmap() to make it easy to handle arbitrarily long lines in preprocessor output. I have seen lines of over 100k in length, so this is well worth it */ map = mmap(NULL, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0); @@ -180,7 +180,8 @@ static void find_hash(ARGS *args) } if (strncmp(args->argv[i], "-I", 2) == 0 || strncmp(args->argv[i], "-L", 2) == 0 || - strncmp(args->argv[i], "-D", 2) == 0) { + strncmp(args->argv[i], "-D", 2) == 0 || + strncmp(args->argv[i], "-isystem", 8) == 0) { continue; } }