Repository navigation
Conversation
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. Code Coverage & BenchmarksFor details see: https://corecheck.dev/bitcoin/bitcoin/pulls/33297. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please copy-paste |
|
I am going to NACK every PR that adds even more Yes, that requires CMake 3.24 and we allow 3.22 as the minimum. It does not matter. Just accept that the setting will have no effect on Ubuntu 22.04. 🤷♂️ cc @hebasto |
Here is some historical context. When migrating the build system from Autotools to CMake, there was a unanimous expectation that, at least initially, we should aim for 100% build option compatibility. That commit introduced CMake’s counterpart to Autotools’ Lines 284 to 289 in 6e62b70 |
That seems acceptable to me, as none of the CI jobs use CMake older that 3.24. And when someone sets |
Don't take it personal. You did a great job migrating from autotools to CMake. I have zero doubts about that. |
|
Concept ACK. As long as -DWERROR is supported, it should work correctly. Discussion about dropping it in favour of other solutions should be considered separately (and existing branches should get fixed even if it's dropped in newer versions) |
cmake: reuse working_compiler_werror_flag in secp256k1
9dac748 to
18d3d67
Compare
|
Concept ACK 18d3d67 I agree with luke-jr that even if we decided to drop this in favor of another solution that should be considered separately |
Guix builds (on x86_64) [untrusted test-only build, possibly unsafe, not for production use] |
|
Given there doesn't seem to be agreement here, I've opened an alternative in #34504. |
|
There seems to be more agreement with #34504, so closing this for now. |
…ERROR` 322c4ec build: replace WERROR with CMAKE_COMPILE_WARNING_AS_ERROR (fanquake) Pull request description: `CMAKE_COMPILE_WARNING_AS_ERROR` was added to CMake in 3.24. `--compile-no-warning-as-error` can be used, if needed, in future, to suppress the `CMAKE_COMPILE_WARNING_AS_ERROR` behaviour from a CI config. Potential alternative to #33297. Closes #33284. See https://cmake.org/cmake/help/latest/prop_tgt/COMPILE_WARNING_AS_ERROR.html. ACKs for top commit: purpleKarrot: re-ACK 322c4ec maflcko: review ACK 322c4ec 📩 hebasto: re-ACK 322c4ec. Tree-SHA512: 1e9b41e87568c1021aecf9414cfc70a3215d1663a13adb1f32493f2dba18978b53888520775d1aa2945224b0404ef83bda0837dddf5f8a089cafb940b856598c
This change prevents unexpected CLI output when compiling with -DWERROR=ON (treat warnings as errors). This setting is now properly propagated to the secp256k1 subproject build. Previously, secp256k1 would be built without the -Werror flag even when the main project was configured to treat warnings as errors, creating inconsistent build behavior.
#33284