]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
handle -isystem= better
authorAndrew Tridgell <tridge@samba.org>
Wed, 27 Mar 2002 08:02:24 +0000 (09:02 +0100)
committerAndrew Tridgell <tridge@samba.org>
Wed, 27 Mar 2002 08:02:24 +0000 (09:02 +0100)
ccache.c

index d1c67e13219d88e2b29995140b4929170df33b3a..aa7e881a705c459d082074a77aacd4388944656e 100644 (file)
--- 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;
                        }
                }