Revert "build: exclude mptest target from compile commands" #35523

pull fanquake wants to merge 1 commits into bitcoin:master from fanquake:revert_35418 changing 1 files +1 −1
  1. fanquake commented at 8:27 AM on June 13, 2026: member

    This reverts commit 4731049ba4f8a820cc4aa13a745e41bdfbee284a (#35418), which broke the build with -DBUILD_TESTS=OFF:

    -- Performing Test HAVE_PTHREAD_GETTHREADID_NP - Failed
    CMake Error at cmake/libmultiprocess.cmake:37 (set_target_properties):
      set_target_properties Can not find target to add properties to: mptest
    Call Stack (most recent call first):
      src/CMakeLists.txt:24 (add_libmultiprocess)
    

    Reported by afiore on IRC.

  2. Revert "build: exclude mptest target from compile commands"
    This reverts commit 4731049ba4f8a820cc4aa13a745e41bdfbee284a.
    d186c390f4
  3. DrahtBot commented at 8:27 AM on June 13, 2026: contributor

    <!--e57a25ab6845829454e8d69fc972939a-->

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

    <!--006a51241073e994b41acfe9ec718e94-->

    Code Coverage & Benchmarks

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

    <!--021abf342d371248e50ceaed478a90ca-->

    Reviews

    See the guideline for information on the review process.

    Type Reviewers
    ACK winterrdog, hebasto

    If your review is incorrectly listed, please copy-paste <code>&lt;!--meta-tag:bot-skip--&gt;</code> into the comment that the bot should ignore.

    <!--5faf32d7da4f0f540f40219e4f7537a3-->

  4. winterrdog commented at 9:57 AM on June 13, 2026: contributor

    tested ACK d186c390f4c7541dc08fe8573504d7082ff03415

    I also ran into this error ~10hrs ago on Pop!_OS 24.04 LTS. With these changes, when I run a CMake configuration with:

    cmake -B build -DBUILD_TESTS=OFF
    

    the build files are generated without error

  5. hebasto approved
  6. hebasto commented at 10:11 AM on June 13, 2026: member

    ACK d186c390f4c7541dc08fe8573504d7082ff03415, tested on Fedora 44.

    If we follow the direction taken in #35418, the correct patch looks as follows:

    --- a/cmake/libmultiprocess.cmake
    +++ b/cmake/libmultiprocess.cmake
    @@ -27,7 +27,10 @@ function(add_libmultiprocess subdir)
       mark_as_advanced(CapnProto_kj-tls_IMPORTED_LOCATION)
       if(BUILD_TESTS)
         # Add tests to "all" target so ctest can run them
    -    set_target_properties(mptest PROPERTIES EXCLUDE_FROM_ALL OFF)
    +    set_target_properties(mptest PROPERTIES
    +      EXCLUDE_FROM_ALL OFF
    +      EXPORT_COMPILE_COMMANDS OFF
    +    )
       endif()
       # Exclude examples from compilation database, because the examples are not
       # built by default, and they contain generated c++ code. Without this
    

    However, I still prefer #35418#pullrequestreview-4428862711.

  7. hebasto merged this on Jun 13, 2026
  8. hebasto closed this on Jun 13, 2026

  9. fanquake deleted the branch on Jun 17, 2026

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: 2026-06-20 23:51 UTC

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