[llvm-bugs] [Bug 43614] clang's coverage mapping uses absolute paths instead of relative paths

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Sep 15 01:30:30 PDT 2021


https://bugs.llvm.org/show_bug.cgi?id=43614

Akshay kumar S <akshaykumars614 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |akshaykumars614 at gmail.com
         Resolution|---                         |FIXED

--- Comment #8 from Akshay kumar S <akshaykumars614 at gmail.com> ---
I used command
%aclang++ -fcoverage-mapping -fprofile-instr-generate
-fcoverage-compilation-dir=.  ../llcov_test/foo.cpp -o foo &&
LLVM_PROFILE_FILE="foo.profraw" ./foo && llvm-profdata merge -sparse
foo.profraw -o foo.profdata && llvm-cov report ./foo
-instr-profile=foo.profdata
to generate code coverage with relative path in the compiler output. and got
the result containing relative path. I think this what you were asking for.

Please correct me if I am wrong.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210915/edf78b7e/attachment.html>


More information about the llvm-bugs mailing list