Cannot get gcno sloppiness to work #1444
Replies: 2 comments 6 replies
-
|
@BenPortner: gcno_cwd sloppiness is about When compiling with
Perhaps the manual could be more clear about this. Any suggestions? |
Beta Was this translation helpful? Give feedback.
-
|
Hello @jrosdahl, thank you for the detailed explanation. This is probably a stupid question but: If the path to the .gcda file is the path to the .o file with the file extension replaced...then why is the absolute path needed? They are in next to each other in the same directory, right? Concerning the manual, here is a first shot (changes highlighted in cursive):
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
How to reproduce
Create a dummy .cpp file:
Compile with c++:
Test if gcno contains absolute base path:
Actual behavior
Grep returns hits in the .o and .gcno file:
These hits cause ccache misses when compiling in other directories (see #1032)
Expected behavior
Grep returns no hits. Ccache reuses artefacts when compiling in other directories.
Environment
I tried with ccache versions 4.6.1 and 4.9.1
c++ 11.4.0
Ubuntu 22.04
Other info
Grep returns no hits when omitting the
--coverageflag while compiling.Debug log: test_ccache.o.20240429_154450_047281.ccache-log.txt
Beta Was this translation helpful? Give feedback.
All reactions