ci: add `CMAKE_LINK_WARNING_AS_ERROR` to macOS jobs #36936

pull fanquake wants to merge 1 commits into bitcoin:master from fanquake:ci_linker_warn changing 2 files +3 −1
  1. fanquake commented at 9:29 AM on November 21, 2026: member

    Turn linker warnings into errors, so that any future warnings are caught.

  2. DrahtBot added the label Tests on Nov 21, 2026
  3. DrahtBot commented at 9:29 AM on November 21, 2026: contributor

    <!--e57a25ab6845829454e8d69fc972939a-->

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

    <!--006a51241073e994b41acfe9ec718e94-->

    External sites

    <!--021abf342d371248e50ceaed478a90ca-->

    Reviews

    See the guideline and AI policy for information on the review process.

    Type Reviewers
    ACK 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. fanquake referenced this in commit 3294adfa45 on Nov 23, 2026
  5. fanquake force-pushed on Nov 23, 2026
  6. fanquake renamed this:
    ci: add `-DCMAKE_LINK_WARNING_AS_ERROR=ON` to macOS jobs
    ci: add `CMAKE_LINK_WARNING_AS_ERROR` to macOS jobs
    on Nov 23, 2026
  7. fanquake marked this as ready for review on Nov 23, 2026
  8. fanquake requested review from hebasto on Nov 23, 2026
  9. in ci/test/00_setup_env_mac_cross.sh:24 in 4c7210ce2d
      19 | @@ -20,5 +20,6 @@ export BUILD_TARGETS="all deploy"
      20 |  printf -v BITCOIN_CONFIG "%q " \
      21 |   --preset=dev-mode \
      22 |   -DWITH_USDT=OFF \
      23 | - -DREDUCE_EXPORTS=ON
      24 | + -DREDUCE_EXPORTS=ON \
      25 | + -DCMAKE_LINK_WARNING_AS_ERROR=ON
    


    hebasto commented at 1:04 PM on November 24, 2026:

    I'm fine with the boolean value ON. However, reviewers might be interested to know that it is equivalent to LINKER;DRIVER.

  10. hebasto commented at 1:05 PM on November 24, 2026: member

    The CMake version in Debian Trixie, where the "macOS-cross *" jobs run, does not support CMAKE_LINK_WARNING_AS_ERROR yet:

    -- Configuring done (8.3s)
    CMake Warning:
      Manually-specified variables were not used by the project:
    
        CMAKE_LINK_WARNING_AS_ERROR
    
    
    -- Generating done (0.1s)
    -- Build files have been written to: /home/runner/work/_temp/build_ ₿🧪_
    

    I believe you want to modify the "macOS native*" jobs instead, where the linker did emit warnings before bitcoin/bitcoin#35756 was merged.

  11. ci: add CMAKE_LINK_WARNING_AS_ERROR to native macOS jobs c1cdf8dd5b
  12. fanquake force-pushed on Nov 24, 2026
  13. fanquake commented at 2:02 PM on November 24, 2026: member

    does not support CMAKE_LINK_WARNING_AS_ERROR yet:

    Right, and it wouldn't work anyways, given CMake is broken in the macOS cross case. This was meant for the native jobs.

  14. hebasto approved
  15. hebasto commented at 5:59 PM on November 24, 2026: member

    ACK c1cdf8dd5bd18ead7ffe3c2e02e193bae72a3f85.

  16. hebasto merged this on Nov 24, 2026
  17. hebasto closed this on Nov 24, 2026

  18. fanquake deleted the branch on Nov 24, 2026
Labels

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-12-05 03:51 UTC

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