]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Split .incbin directive in ccache source code to enable cache hits
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 21 Jan 2018 07:54:17 +0000 (08:54 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 21 Jan 2018 07:54:17 +0000 (08:54 +0100)
ccache.c

index f72a9bda2fa35e9793b1a608208be1bdb50ba9af..3044016c23a531529804db52425caadb58c25356 100644 (file)
--- a/ccache.c
+++ b/ccache.c
@@ -844,11 +844,11 @@ process_preprocessed_file(struct mdfour *hash, const char *path)
                        p = q; // Everything of interest between p and q has been hashed now.
                } else if (q[0] == '.' && q[1] == 'i' && q[2] == 'n' && q[3] == 'c'
                           && q[4] == 'b' && q[5] == 'i' && q[6] == 'n') {
-                       // An assembler .incbin statement (which could be part of inline
-                       // assembly) refers to an external file. If the file changes, the hash
-                       // should change as well, but finding out what file to hash is too hard
-                       // for ccache, so just bail out.
-                       cc_log("Found unsupported .incbin directive in source code");
+                       // An assembler .inc bin (without the space) statement, which could be
+                       // part of inline assembly, refers to an external file. If the file
+                       // changes, the hash should change as well, but finding out what file to
+                       // hash is too hard for ccache, so just bail out.
+                       cc_log("Found unsupported .inc" "bin directive in source code");
                        stats_update(STATS_UNSUPPORTED_DIRECTIVE);
                        failed();
                } else {