hebasto
commented at 3:42 PM on December 15, 2024:
member
The TARGET_OBJECTS generator expression was introduced in the staging branch when we aimed to build the libbitcoinconsensus shared library. However, bitcoin_consensus is a STATIC library, not an OBJECT library.
This change updates the build system to link bitcoin_consensus normally to test_bitcoin, resolving linking issues when building with clang-cl.
cmake: Link `bitcoin_consensus` as a library
The TARGET_OBJECTS generator expression was introduced in the staging
branch when we aimed to build the libbitcoinconsensus shared library.
However, `bitcoin_consensus` is a STATIC library, not an OBJECT library.
This change updates the build system to link `bitcoin_consensus`
normally to `test_bitcoin`, resolving linking issues when building with
clang-cl.
46e207d329
hebasto added the label Build system on Dec 15, 2024
hebasto added the label Tests on Dec 15, 2024
DrahtBot
commented at 3:42 PM on December 15, 2024:
contributor
<!--e57a25ab6845829454e8d69fc972939a-->
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.
<!--174a7506f384e20aa4161008e828411d-->
Conflicts
Reviewers, this pull request conflicts with the following ones:
#30901 (cmake: Revamp handling of data files for {test,bench}_bitcoin targets by hebasto)
#28792 (Embed default ASMap as binary dump header file by fjahr)
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
sedited approved
sedited
commented at 4:57 PM on December 15, 2024:
contributor
ACK46e207d3296c1423eff7d5b204fad850e15aaec0
bitcoin deleted a comment on Dec 16, 2024
theuni approved
theuni
commented at 5:37 PM on December 16, 2024:
member
utACK46e207d3296c1423eff7d5b204fad850e15aaec0
fanquake merged this on Dec 17, 2024
fanquake closed this on Dec 17, 2024
hebasto deleted the branch on Dec 17, 2024
sedited referenced this in commit 230a439a4a on Jan 17, 2025
stickies-v referenced this in commit d760fd3dda on Mar 17, 2025
stickies-v referenced this in commit cc83553352 on Mar 17, 2025
stickies-v referenced this in commit 2614933f06 on Mar 17, 2025
stickies-v referenced this in commit b70418c5fc on Mar 17, 2025
stickies-v referenced this in commit 69f8a1fe50 on Mar 17, 2025
bug-castercv502 referenced this in commit 44b075fe71 on Sep 28, 2025
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-04-24 21:13 UTC
This site is hosted by @0xB10C More mirrored repositories can be found on mirror.b10c.me