acquire-project / acquire-common

Core libraries, runtime, and common devices driver for Acquire
Apache License 2.0
0 stars 7 forks source link

integrate a code coverage tool #9

Open nclack opened 2 years ago

nclack commented 2 years ago

building with llvm

There's a way to do it via a visual studio toolchain, but it might be better to just use ninja, choco install llvm and specify clang and clang++ as the C/CXX compilers for cmake. Need to add compiler flags for instrumenting coverage and may need to link the profiler lib.

references:

https://andreasfertig.blog/2020/12/cpp-insights-code-coverage-on-windows/ https://github.com/andreasfertig/cppinsights/blob/main/.github/workflows/ci.yml

https://marco-c.github.io/2018/01/09/code-coverage-with-clang-on-windows.html