-
Notifications
You must be signed in to change notification settings - Fork 37.7k
build: Remove unused visibility checks #30590
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 CoverageFor detailed information about the code coverage, see the test coverage report. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update. |
Concept ACK on dropping unused staff. |
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.
Concept ACK.
We'll definitely want these back for the kernel at some point, yes. Though, sure, we can re-add them in a more modern way when the time comes.
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.
ACK bbcba09. I've verified that neither HAVE_DEFAULT_VISIBILITY_ATTRIBUTE
nor HAVE_DLLEXPORT_ATTRIBUTE
are used or evaluated in the current codebase.
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.
ACK bbcba09
The visibility("default")
attribute is still used in src/tinyformat.h
, but I don't think we need this check for that, since it is already gated.
Yea. I think for our use, that (and related) code could also just be removed entirely. |
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.
ACK bbcba09
Makes sense to remove this while it's unused.
I did find a usage of HAVE_DEFAULT_VISIBILITY_ATTRIBUTE
in my source dir, but it's only present because make distclean
does not remove the file src/config/bitcoin-config.h.in
(which I don't think is worth tidying with a new build system on the way)
Ported to the CMake-based build system in hebasto#307. |
782ba0f fixup! cmake: Add introspection module (Hennadii Stepanov) Pull request description: This PR ports bitcoin#30590. ACKs for top commit: fanquake: ACK 782ba0f Tree-SHA512: 89ec94cf40d2d39b01015e1c3b46e24e687861ce50be19e5fc6c5faa23a3ddfb8e3141caff27111490b79817cc13fc7b8dfd008325856b8436ae7d6f0ade55b1
This reverts commit bbcba09 (bitcoin#30590)
This reverts commit 37c9abd (bitcoin#30590)
This reverts commit bbcba09 (bitcoin#30590)
This reverts commit 37c9abd (bitcoin#30590)
This reverts commit bbcba09 (bitcoin#30590)
This reverts commit 37c9abd (bitcoin#30590)
This reverts commit bbcba09 (bitcoin#30590)
This reverts commit 37c9abd (bitcoin#30590)
This reverts commit bbcba09 (bitcoin#30590)
This reverts commit 37c9abd (bitcoin#30590)
These are unused (since libbitcoinconsensus / #29648), and the current CMake port doesn't quite match behaviour, such that there's no real point in doing the check. So rather than port anything, just remove it. If these are needed again in future (i.e for kernel or similar), they can be revisted, and it might be the case that build-system level checks will not be wanted.