Search code examples
xcodecode-coveragellvm

How to make xcode4 code-coverage with llvm cumulative across application executions


I have code coverage in XCode 4.2 with libprofile_rt working. I have noticed that the coverage files are reset for every execution of my program. This is different from the way gcov worked and its something I need to work (since my tests execute across multiple runs of my app). Can someone point me to the way to make libprofile_rt generate cumulative coverage?


Solution

  • actually looks to be an existing bug in LLVM: http://llvm.org/bugs/show_bug.cgi?id=11457