cmake: Link bitcoin_consensus as a library #31503

pull hebasto wants to merge 1 commits into bitcoin:master from hebasto:241215-linking changing 1 files +1 −1
  1. 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.

  2. 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
  3. hebasto added the label Build system on Dec 15, 2024
  4. hebasto added the label Tests on Dec 15, 2024
  5. DrahtBot commented at 3:42 pm on December 15, 2024: 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/31503.

    Reviews

    See the guideline for information on the review process.

    Type Reviewers
    ACK TheCharlatan, theuni

    If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

    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.

  6. TheCharlatan approved
  7. TheCharlatan commented at 4:57 pm on December 15, 2024: contributor
    ACK 46e207d3296c1423eff7d5b204fad850e15aaec0
  8. bitcoin deleted a comment on Dec 16, 2024
  9. theuni approved
  10. theuni commented at 5:37 pm on December 16, 2024: member
    utACK 46e207d3296c1423eff7d5b204fad850e15aaec0
  11. fanquake merged this on Dec 17, 2024
  12. fanquake closed this on Dec 17, 2024

  13. hebasto deleted the branch on Dec 17, 2024

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: 2024-12-21 12:12 UTC

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