Skip to content

cmake: Copy `cov_tool_wrapper.sh.in` to the build tree

This PR ensures that cov_tool_wrapper.sh.in is available when invoking the Coverage.cmake script from any directory.

Here is an example of usage on Ubuntu 24.10 with the default GCC 14.2.0:

$ cmake -B build -DCMAKE_BUILD_TYPE=Coverage -DCMAKE_CXX_FLAGS="-fprofile-update=atomic" -DCMAKE_C_FLAGS="-fprofile-update=atomic"
$ cmake --build build -j $(nproc)
$ cd ..
$ cmake -DJOBS=$(nproc) -DLCOV_OPTS="--ignore-errors inconsistent,inconsistent" -P bitcoin/build/Coverage.cmake

Fixes https://github.com/bitcoin/bitcoin/issues/31638.

Merge request reports

Loading