profile_rt from llvm folks?

Ed Maste emaste at freebsd.org
Wed Apr 1 21:31:44 UTC 2015


On 1 April 2015 at 16:35, Dimitry Andric <dim at freebsd.org> wrote:
> On 01 Apr 2015, at 02:03, NGie Cooper <yaneurabeya at gmail.com> wrote:
>>
>> Hi all,
>>    We've recently integrated a version of profile_rt from the llvm
>> folks internally to replace gcov for code coverage. I was wondering if
>> there was a plan to replace the copy of gcov in FreeBSD with the same
>> (either in the base system, ports, or both).
>
> I personally have no plans to do so, but the build of libprofile_rt.a
> was added in r276857, at least.

Yes, as of that change one can compile with --coverage, and .gcda and
.gcno files will be produced via the functionality in libprofile_rt.a.

gcov(1) is able to use them, but when I tried llvm-cov it didn't work
correctly; in any case, llvm-cov is now on the roadmap for our
toolchain.

-Ed


More information about the freebsd-toolchain mailing list