[vtk-developers] Coverage issue - MacOSX CLang vs Ubuntu gcc
Jean-Christophe Fillion-Robin
jchris.fillionr at kitware.com
Thu May 30 14:03:21 EDT 2013
Hi Sean,
Thanks for the pointer. The version on that dashboard is indeed "Apple
clang version 3.0 (tags/Apple/clang-211.10.1) (based on LLVM 3.0svn)"
I will try with a recent version of clang.
Few questions regarding code coverage, on apple assuming the latest version
of either gcc or clang are used. Could you (or any body else)
comment/confirm the info reported below. In both case:
CTEST_COVERAGE_COMMAND "/usr/bin/gcov"
CMAKE_CXX_FLAGS -fprofile-arcs -ftest-coverage # in addition to usual
flags
CMAKE_CXX_FLAGS_DEBUG: -O0 -ggdb
Is it needed to link against any library like "gcov" or "libprofile_rt" ?
Thanks for your help,
Jc
On Thu, May 30, 2013 at 11:18 AM, Sean McBride <sean at rogue-research.com>wrote:
> On Wed, 29 May 2013 20:42:25 -0400, Bill Lorensen said:
>
> >Coverage is broken on the Macs. Do not rely on Mac coverage.
>
> More exactly: coverage is broken on older versions of clang (on any
> platform).
>
> Jean-Chirstophe, exactly what version of clang are you using? From the
> name "MacLion-Clang-3.0-debug" I'm fairly sure it's an old clang that
> suffers from some of these, or more:
>
> <http://llvm.org/bugs/show_bug.cgi?id=11760>
> <http://llvm.org/bugs/show_bug.cgi?id=11457>
> <http://llvm.org/bugs/show_bug.cgi?id=11809>
>
> AFAICT, coverage support should be much better in clang 3.3, but have not
> tried recently.
>
> Cheers,
>
> --
> ____________________________________________________________
> Sean McBride, B. Eng sean at rogue-research.com
> Rogue Research www.rogue-research.com
> Mac Software Developer Montréal, Québec, Canada
>
>
>
--
+1 919 869 8849
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20130530/7249e3c0/attachment.html>
More information about the vtk-developers
mailing list