zero9178 / C-Cpp-Coverage-for-CLion

Get coverage data in CLion using gcov or llvm-cov
MIT License
38 stars 2 forks source link

Unknown command line argument #4

Closed bennybbb closed 5 years ago

bennybbb commented 5 years ago

Whenever I try to exeucte the coverage I get the following errror message:

gcov returned following warning: gcov: Unknown command line argument '-i'. Try: '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/gcov -help' Did you mean '-a'? gcov: Unknown command line argument '-m'. Try: '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/gcov -help' Did you mean '-a'?

I am using CLion 2018.3.3 with Mojave 10.14 and gcov: Apple LLVM version 10.0.0 (clang-1000.11.45.5)

zero9178 commented 5 years ago

This is due to you using gcov provided by XCode which is actually not gcov but llvm-cov with the gcov command as prefix. It does sadly not support the same arguments as real gcov and is therefore not supported. You can now use a suitable version of llvm-cov with upcoming 2.0.0 release