Skip to content

Use defined CXX_STANDARD for environment introspection#71

Merged
ryanofsky merged 1 commit intobitcoin-core:masterfrom
hebasto:220831-standard
Aug 31, 2022
Merged

Use defined CXX_STANDARD for environment introspection#71
ryanofsky merged 1 commit intobitcoin-core:masterfrom
hebasto:220831-standard

Conversation

@hebasto
Copy link
Copy Markdown
Member

@hebasto hebasto commented Aug 31, 2022

It doesn't look robust to use different C++ standards for configuration and building.

This PR, for example, will apply the -std=gnu++17 compiler option for all checks during configuration when building with GCC.

Copy link
Copy Markdown
Collaborator

@ryanofsky ryanofsky 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 2eff5da. The original reason this was implemented this way was that some versions of capnproto required c++14 while bitcoin was still using c++11, so there really was a mix of versions being used together. But it is simpler to set a default version now, and good to use the same version for checks.

@ryanofsky ryanofsky merged commit d321ef8 into bitcoin-core:master Aug 31, 2022
@hebasto hebasto deleted the 220831-standard branch August 31, 2022 18:56
@bitcoin-core bitcoin-core locked and limited conversation to collaborators Jun 25, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants