char *path, *q;
p = x_strdup(p);
q = p;
- while ((path = strtok(q, " \t\r\n"))) {
+ while ((path = strtok(q, ":"))) {
cc_log("Hashing extra file %s", path);
hash_delimiter(hash, "extrafile");
if (!hash_file(hash, path)) {
*CCACHE_EXTRAFILES*::
If you set the environment variable *CCACHE_EXTRAFILES* to a
- space-separated list of paths then ccache will include the contents of
+ colon-separated list of paths then ccache will include the contents of
those files when calculating the hash sum.
*CCACHE_HARDLINK*::
checkstat 'cache miss' 1
testname="cache miss a b"
- CCACHE_EXTRAFILES="a b" $CCACHE $COMPILER -c test.c
+ CCACHE_EXTRAFILES="a:b" $CCACHE $COMPILER -c test.c
checkstat 'cache hit (preprocessed)' 1
checkstat 'cache miss' 2
testname="cache hit a b"
- CCACHE_EXTRAFILES="a b" $CCACHE $COMPILER -c test.c
+ CCACHE_EXTRAFILES="a:b" $CCACHE $COMPILER -c test.c
checkstat 'cache hit (preprocessed)' 2
checkstat 'cache miss' 2
testname="cache miss a b2"
echo b2 >b
- CCACHE_EXTRAFILES="a b" $CCACHE $COMPILER -c test.c
+ CCACHE_EXTRAFILES="a:b" $CCACHE $COMPILER -c test.c
checkstat 'cache hit (preprocessed)' 2
checkstat 'cache miss' 3
testname="cache hit a b2"
- CCACHE_EXTRAFILES="a b" $CCACHE $COMPILER -c test.c
+ CCACHE_EXTRAFILES="a:b" $CCACHE $COMPILER -c test.c
checkstat 'cache hit (preprocessed)' 3
checkstat 'cache miss' 3