Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dibalavs opened this issue May 2, 2024 · 2 comments
Open
Labels
feature New or improved feature

Comments

@dibalavs
Copy link

dibalavs commented May 2, 2024

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 dibalavs added the bug Does not work as intended/documented label May 2, 2024
@jrosdahl
Copy link
Member

jrosdahl commented May 2, 2024

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

@jrosdahl jrosdahl added feature New or improved feature and removed bug Does not work as intended/documented labels May 2, 2024
@jrosdahl jrosdahl changed the title Unable to avoid <timestamp> part during CCACHE_DEBUG=1 Make it possible to avoid the timestamp part of files with CCACHE_DEBUG=1 May 2, 2024
@jrosdahl
Copy link
Member

jrosdahl commented May 2, 2024

This could be done by extending the idea in #1361 (comment) with something like debug = timestamps:false .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New or improved feature
Projects
None yet
Development

No branches or pull requests

2 participants