-
Notifications
You must be signed in to change notification settings - Fork 37.7k
ci: Replace CMAKE_CXX_FLAGS
with APPEND_CXXFLAGS
#31726
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
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/31726. ReviewsSee the guideline for information on the review process. ConflictsReviewers, this pull request conflicts with the following ones:
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. |
This will "fix" #31487 for the CI, but just by hiding the underlying issue using I'm also wondering if fixing it in this way, is worth introducing the inconsistency of using |
I don't think there are any underlying issues with |
For better or worse, this is just how CMake works. |
Thank you for your feedback!
This passage might give the impression that this behaviour is specific to CMake. However, it is not:
|
Are there any flags that one could put into |
Neither could I.
In that case, #31487 should be closed, as the summary is technically correct. |
@@ -18,7 +18,7 @@ export BITCOIN_CONFIG="\ | |||
-DCMAKE_BUILD_TYPE=Debug \ | |||
-DCMAKE_C_COMPILER='clang;-m32' \ | |||
-DCMAKE_CXX_COMPILER='clang++;-m32' \ | |||
-DCMAKE_CXX_FLAGS='-Wno-error=documentation' \ | |||
-DAPPEND_CXXFLAGS='-Wno-error=documentation' \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this be dropped completely?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure! Dropped.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thx, could submit as a fresh pull?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure! Please see #31804.
This change ensures that compiler flags are applied exclusively during compiler invocations.
1bd737d
to
d4d5c3d
Compare
f1d7a6d ci: Remove no longer needed '-Wno-error=documentation' (Hennadii Stepanov) Pull request description: Picked from #31726. ACKs for top commit: maflcko: lgtm ACK f1d7a6d Tree-SHA512: 2c4b197da1a60662922341062f9c1fe43b0e35a50194f4757057a48d7538f2f68540ed56508193a5c6a81e3f7dfbca78b15e3c101aae08d8ccd1fc5df0535932
This PR ensures that compiler flags are applied exclusively during compiler invocations.
Below is a summary of differences between
CMAKE_CXX_FLAGS
andAPPEND_CXXFLAGS
variables:CMAKE_CXX_FLAGS
APPEND_CXXFLAGS
Fixes #31487. However, during the development of the staging branch, the general consensus was to adhere to CMake's standard variables as much as possible.