-
Type: Task
-
Resolution: Fixed
-
Priority: Minor - P4
-
Affects Version/s: None
-
Component/s: None
-
None
The --coverage option is supported by both GCC and Clang:
- https://gcc.gnu.org/onlinedocs/gcc/Instrumentation-Options.html
- https://clang.llvm.org/docs/SourceBasedCodeCoverage.html
It was also used by libmongoc. We currently add -fprofile-arcs -ftest-coverage CFLAGS manually and do not specify any linker options. This change should preserve the effect of our current CFLAGS and ensure that we link to gcov appropriately.