]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Don't include -Wl,... in hash since it doesn't affect compilation
authorJoel Rosdahl <joel@rosdahl.net>
Sat, 15 Nov 2014 14:59:39 +0000 (15:59 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Sat, 15 Nov 2014 14:59:39 +0000 (15:59 +0100)
As suggested by Mutsumi Ishikawa.

ccache.c

index 0da05139165c9d82633d9d4a9048cfff1a56bcc8..d315b0beaf949fad7b8910e6d719b15f07e53b61 100644 (file)
--- a/ccache.c
+++ b/ccache.c
@@ -1221,6 +1221,11 @@ calculate_object_hash(struct args *args, struct mdfour *hash, int direct_mode)
                        continue;
                }
 
+               /* -Wl,... doesn't affect compilation. */
+               if (str_startswith(args->argv[i], "-Wl,")) {
+                       continue;
+               }
+
                /* The -fdebug-prefix-map option may be used in combination with
                   CCACHE_BASEDIR to reuse results across different directories. Skip it
                   from hashing. */