Fix coverage report for the c_api implementation
Fixes #850 (closed).
Something is wrong when using Rust's / LLVM's source-based profiling instrumentation (-Cinstrument-coverage
) when linked to a main program compiled with C code. What Mozilla does instead is to use gcov-based instrumentation (-Zprofile
).
This also makes the tests/api
program be linked statically, to reduce the number of moving parts. It is explicitly linked against clang's profiling runtime library.
With that, we get coverage information for src/c_api
. Yay!