Hello,
I want to collect code coverage statistics of software built with clang (optimally the one in (FreeBSD10's) base), however building it in --coverage mode fails to link, diagnosing
Replacing --coverage with -fprofile-arcs -ftest-coverage makes no difference.
The libprofile_rt.a file does not exist on the system (WITH_CLANG_FULL=YES, WITH_CLANG_EXTRAS=YES) in some unsearched path either, and is also not listed in the devel/llvm34 or lang/clang34 ports(7) package's pkg-plist.
Is there a way to generage coverage reports of clang built binaries?
I want to collect code coverage statistics of software built with clang (optimally the one in (FreeBSD10's) base), however building it in --coverage mode fails to link, diagnosing
Code:
# cc --coverage test.c
/usr/bin/ld: /usr/bin/../lib/libprofile_rt.a: No such file: No such file or directory
Replacing --coverage with -fprofile-arcs -ftest-coverage makes no difference.
The libprofile_rt.a file does not exist on the system (WITH_CLANG_FULL=YES, WITH_CLANG_EXTRAS=YES) in some unsearched path either, and is also not listed in the devel/llvm34 or lang/clang34 ports(7) package's pkg-plist.
Is there a way to generage coverage reports of clang built binaries?