summaryrefslogtreecommitdiff
path: root/ccache.h
diff options
context:
space:
mode:
authorJørgen P. Tjernø <jorgen@valvesoftware.com>2013-06-07 18:43:18 -0700
committerJoel Rosdahl <joel@rosdahl.net>2013-08-25 21:45:06 +0200
commitcea77ffd4c15040e2e677677f20347ea77d82407 (patch)
tree4120dbbbfcbbc65b4574cfe698b429cfc764a804 /ccache.h
parentad40a1d647bbb503ed06e7da540abf7725b8d859 (diff)
downloadccache-cea77ffd4c15040e2e677677f20347ea77d82407.tar.gz
Skip dependency filename options for object hash.
The filename of a dependency file doesn't have any bearing on the result, so using it to calculate object hashes gives incorrect results. This skips the <file> part of: -Wp,-MD,<file> -Wp,-MMD,<file> -MF<file> -MF <file> Also tests for this functionality. Fixes issue jrosdahl#28.
Diffstat (limited to 'ccache.h')
-rw-r--r--ccache.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ccache.h b/ccache.h
index 00aec468..48812df0 100644
--- a/ccache.h
+++ b/ccache.h
@@ -101,6 +101,7 @@ void hash_result_as_bytes(struct mdfour *md, unsigned char *out);
bool hash_equal(struct mdfour *md1, struct mdfour *md2);
void hash_delimiter(struct mdfour *md, const char *type);
void hash_string(struct mdfour *md, const char *s);
+void hash_string_length(struct mdfour *md, const char *s, int length);
void hash_int(struct mdfour *md, int x);
bool hash_fd(struct mdfour *md, int fd);
bool hash_file(struct mdfour *md, const char *fname);