From: Joel Rosdahl Date: Sat, 15 Nov 2014 14:59:39 +0000 (+0100) Subject: Don't include -Wl,... in hash since it doesn't affect compilation X-Git-Tag: v3.2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=47f5e8c77d3138beb1087fccb0f76ab76273e4cb;p=thirdparty%2Fccache.git Don't include -Wl,... in hash since it doesn't affect compilation As suggested by Mutsumi Ishikawa. --- diff --git a/ccache.c b/ccache.c index 0da051391..d315b0bea 100644 --- 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. */