Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

serialization: replace char-is-int8_t autoconf detection with c++20 concept #29484

Merged
merged 1 commit into from Feb 28, 2024

Conversation

theuni
Copy link
Member

@theuni theuni commented Feb 26, 2024

Doesn't depend on #29263, but it's really only relevant after that one's merged.

This removes the only remaining autoconf macro in our serialization code (after #29263), so it can now be used trivially and safely out-of-tree.

Our code does not currently contain any concepts, but couldn't find any discussion or docs about avoiding them. I guess we'll see if this blows up our c-i.
Edit: Ignore this. ajtowns pointed out that we're already using a few concepts.

This was introduced in #13580. Please check my logic on this as I'm unable to test on a SmartOS system. Even better would be a confirmation from someone who can build there.

@DrahtBot
Copy link
Contributor

DrahtBot commented Feb 26, 2024

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

Code Coverage

For detailed information about the code coverage, see the test coverage report.

Reviews

See the guideline for information on the review process.

Type Reviewers
ACK Empact
Concept ACK fanquake
Stale ACK maflcko, TheCharlatan

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:

  • #29494 (build: Assume HAVE_CONFIG_H, Add IWYU pragma keep to bitcoin-config.h includes by maflcko)

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.

@theuni
Copy link
Member Author

theuni commented Feb 26, 2024

Ping @maflcko for the concepts question.
Ping @TheCharlatan as the autoconf removal might be relevant to kernel.
Ping @stacepellegrino for a possible test.

@fanquake
Copy link
Member

Concept ACK

@maflcko
Copy link
Member

maflcko commented Feb 27, 2024

review ACK 064c6d3

Copy link
Contributor

@TheCharlatan TheCharlatan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 064c6d3

src/serialize.h Outdated Show resolved Hide resolved
Copy link
Member

@Empact Empact left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code review ACK 064c6d3

…oncept

This removes the only remaining autoconf macro in our serialization code,
so it can now be used trivially and safely out-of-tree.
@Empact
Copy link
Member

Empact commented Feb 27, 2024

Code review ACK ad7584d

@fanquake fanquake merged commit bbfddb3 into bitcoin:master Feb 28, 2024
16 checks passed
hebasto added a commit to hebasto/bitcoin that referenced this pull request Mar 17, 2024
dc1a121 fixup! cmake: Check compiler features (Hennadii Stepanov)

Pull request description:

  This PR backports build system changes from bitcoin#29484.

ACKs for top commit:
  pablomartin4btc:
    ACK dc1a121

Tree-SHA512: e6005f96a9632fb4787d2dcfc558aa484be6401804ffcdfe68e6d17e39576d7fc55cbf17f0c7097f32c4639201f6b26c7098bb9a1cce801fee6bd77047cfa82d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants