ccache icon indicating copy to clipboard operation
ccache copied to clipboard

Make it possible to avoid the timestamp part of files with CCACHE_DEBUG=1

Open dibalavs opened this issue 9 months ago • 2 comments

use article about debugging: https://interrupt.memfault.com/blog/ccache-debugging

do steps:

  • CCACHE_DEBUG=1 CCACHE_DEBUGDIR/path/to/ccache-debug-1 make
  • clear build
  • CCACHE_DEBUG=1 CCACHE_DEBUGDIR/path/to/ccache-debug-2 make
  • find . \( -name '*.ccache-input-[cdp]' -o -name '*.ccache-log' \) -exec rm {} \;
  • meld ccache-debug-1 ccache-debug-2

the issue: because each file has name pattern: ..ccache-input-text with part, which is different for each run. It is unable to automatic compare files, because meld is unable to match files between 2 different runs. see example:

image

Possible solution:

add way to customize or disable

ccache version 4.8

gcc 11 ubuntu 22.04

dibalavs avatar May 02 '24 12:05 dibalavs

This is not a bug so I'll convert the issue to a feature request.

jrosdahl avatar May 02 '24 17:05 jrosdahl

This could be done by extending the idea in https://github.com/ccache/ccache/issues/1361#issuecomment-1879631795 with something like debug = timestamps:false .

jrosdahl avatar May 02 '24 17:05 jrosdahl