Turn linker warnings into errors, so that any future warnings are caught.
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-
fanquake commented at 9:29 AM on November 21, 2026: member
- DrahtBot added the label Tests on Nov 21, 2026
-
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
- Code coverage & benchmarks: https://corecheck.dev/bitcoin/bitcoin/pulls/36936
- Ralph review <img src=https://review.fish.foo/assets/bitcoin/bitcoin/36936.png alt="Ralph review status"> https://git.fish.foo/bitcoin/bitcoin/pulls/36936#author-ralph
<!--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><!--meta-tag:bot-skip--></code> into the comment that the bot should ignore.
<!--5faf32d7da4f0f540f40219e4f7537a3-->
- fanquake referenced this in commit 3294adfa45 on Nov 23, 2026
- fanquake force-pushed on Nov 23, 2026
- 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 - fanquake marked this as ready for review on Nov 23, 2026
- fanquake requested review from hebasto on Nov 23, 2026
-
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 toLINKER;DRIVER.hebasto commented at 1:05 PM on November 24, 2026: memberThe CMake version in Debian Trixie, where the "macOS-cross *" jobs run, does not support
CMAKE_LINK_WARNING_AS_ERRORyet:-- 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.
ci: add CMAKE_LINK_WARNING_AS_ERROR to native macOS jobs c1cdf8dd5bfanquake force-pushed on Nov 24, 2026fanquake commented at 2:02 PM on November 24, 2026: memberdoes 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.
hebasto approvedhebasto commented at 5:59 PM on November 24, 2026: memberACK c1cdf8dd5bd18ead7ffe3c2e02e193bae72a3f85.
hebasto merged this on Nov 24, 2026hebasto closed this on Nov 24, 2026fanquake deleted the branch on Nov 24, 2026
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
More mirrored repositories can be found on mirror.b10c.me