cmake: Copy cov_tool_wrapper.sh.in to the build tree #31722

pull hebasto wants to merge 1 commits into bitcoin:master from hebasto:250123-cmake-cov changing 3 files +2 −1
  1. hebasto commented at 10:51 am on January 23, 2025: member

    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:

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

    Fixes #31638.

  2. cmake: Copy `cov_tool_wrapper.sh.in` to the build tree
    This change ensures that `cov_tool_wrapper.sh.in` is available when
    invoking the `Coverage.cmake` script from any directory.
    e3c0152769
  3. DrahtBot commented at 10:51 am on January 23, 2025: contributor

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    Code Coverage & Benchmarks

    For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/31722.

    Reviews

    See the guideline for information on the review process. A summary of reviews will appear here.

  4. DrahtBot added the label Build system on Jan 23, 2025
  5. hebasto added this to the milestone 29.0 on Jan 23, 2025
  6. jimhashhq approved
  7. jimhashhq commented at 9:46 pm on January 23, 2025: none
    Looks very good to me. Thank you for the fix, and for pointing out & correcting the relative path issue.
  8. hebasto added the label Bug on Feb 3, 2025

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2025-02-07 15:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me