[ccache] Generated dep file newer than object file

Joel Rosdahl joel at rosdahl.net
Sun May 1 15:27:35 MDT 2011


On 2011-05-01 23:02, Andrew Gallagher wrote:
> [...]
> foo.o: foo.c
>   gcc -c -MD ...
> 
> foo.o: foo.d

.d files aren't supposed to be dependencies, so I'd argue that such a
Makefile is badly written.

However, letting ccache update mtime of the .d file before the .o file
couldn't hurt, so that would be OK with me.

> I think the fix is pretty simple (I've been adding an
> "update_mtime(output_obj);" if a dep file is produce). What would be
> the best way to send diffs/patches for bug fixes like this?

You can either send the patch to this list or create a bug report; see
<http://ccache.samba.org/bugs.html>.

-- Joel


More information about the ccache mailing list