]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
No need to hash -nostdinc and -nostdinc++ in preprocessor mode
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 25 Apr 2010 15:27:01 +0000 (17:27 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 25 Apr 2010 15:27:01 +0000 (17:27 +0200)
ccache.c

index 1ce1513e460ee269c9bc1c6d8607541697a56197..3f89a99ea19916ddb839f8ed930ce492882b6085 100644 (file)
--- a/ccache.c
+++ b/ccache.c
@@ -811,7 +811,9 @@ static int find_hash(ARGS *args, enum findhash_call_mode mode)
                                    strcmp(args->argv[i], "-iwithprefix") == 0 ||
                                    strcmp(args->argv[i], "-iwithprefixbefore") == 0 ||
                                    strcmp(args->argv[i], "-idirafter") == 0 ||
-                                   strcmp(args->argv[i], "-isystem") == 0) {
+                                   strcmp(args->argv[i], "-isystem") == 0 ||
+                                   strcmp(args->argv[i], "-nostdinc") == 0 ||
+                                   strcmp(args->argv[i], "-nostdinc++") == 0) {
                                        /* Skip from hash. */
                                        i++;
                                        continue;