Closed alexforster closed 5 years ago
This plugin is untested on Mac OS-X. It should work as long as the toolchains are setup correctly. One thing to watch out for is that gcc, g++ and gcov installed by XCode are NOT GCC but actually clang,clang++ and a gcov like implementation by the LLVM project. This version of gcov will NOT WORK as it does not implement the same command line arguments as real gcov. Please install another toolchain or find a llvm-cov version suitable for your version of clang.
Oh wait, let me try the homebrew llvm...
Nope, same exception.
/usr/local/opt/llvm@7/bin/clang
/usr/local/opt/llvm@7/bin/clang++
/usr/local/opt/llvm@7/bin/llvm-cov
/usr/local/opt/llvm@7/bin/llvm-profdata
/usr/local/opt/llvm@7/bin/llvm-cxxfilt
Investigating... Dont think this is to blame and Mac OS-X as you have a normal LLVM install and not an Apple LLVM.
Turns out there are two properties in the JSON that llvm prior to llvm 8 outputted as either 0 or 1 (aka as ints) and since llvm 8 do as boolean. Will be fixed in the next version which I'll be releasing hopefully today or tomorrow and will then be available after approval two days afterwards
Great! Thanks for taking a look.
That fixed it. Thanks again!
/Library/Developer/CommandLineTools/usr/bin/llvm-cov
/Library/Developer/CommandLineTools/usr/bin/llvm-cov