<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/54670>54670</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[gcov] Ability to map gcda file paths
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
vit9696
</td>
</tr>
</table>
<pre>
When compiling code with `-fprofile-arcs` clang encodes full .gcda file path based on the object file path. In some cases this is infeasible, as the compilation directory may have extra long prefix, which is not practical to store on embedded targets.
To avoid this issue we would like to replace this prefix with a custom value by extending `-fcoverage-prefix-map` option. There is a similar issue in gcc (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105063), where we were able to reach a certain level of agreement. Will clang follow?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxdUsGOmzAQ_RpzGQURk5DkwGHb1Uq9r7THarAHcGtsZBuy6dd3DLutWsnA2H4z895jOq8f7dtIDpSfZmONGzjSBHeTRhBNdejn4Htj6YBBRT4AZZFB5DIsQr9YC-WgNEJGwYyc12EkDd5BGgl894NU-ntbwjcH0U8EimGRMSZCXq4njKazJORXwLgl76wwGS6mTeBCPjxgwgeMuBLQewoI1jOhOVBv3nPqfTRqzBWdT3yMKhmFFpKHyNmUedHUkdbMMWEYKMVSVM-ietrfrx5w9UZ_MosL28HLL1aDNT8plwo0W1S0Y_beu2cIauE-E6xoObF7ZJLkdHZ281P5lQIOdNizDhPO2VY_Z5ElvI7EHLkoQjQTaw8fFIyDQSkQ8jqmNEdRPwn5wosPy8EtpQ8D77pl-GWsRQ7j6O_feV-qwYj6xWhRPx-rc9XUQt52o3KrLC1_kZ3flaHaZFBIyE0trWTB94BDIJrIpRLeuMXHIPTeWn_n-oVua32rb1gkkyy14vxlYK3i_AxPHU9WeuTqrBb-nZZYLMG2_2liJ5eu5L_PG2vXzw975vM08XYzJXJwPjWXqhjbXlWyu53qc9PpCpXES8cP1nV9lJfL9VpY7MjGzEtI6ei--8oxUyxMKyspKwYfGX46lpe6v2g8NvJaXTlRi1NFExpbZh7Z7CK0GyV2OPKlNZHn6M8lxmgGR5sNuT4uafShXU26Nbem2Fq3G_XfA1wwUg">