Skip to content

build: Refactor visibility logic and add override#1696

Merged
real-or-random merged 3 commits intobitcoin-core:masterfrom
real-or-random:202506-noexport3
Jul 21, 2025
Merged

build: Refactor visibility logic and add override#1696
real-or-random merged 3 commits intobitcoin-core:masterfrom
real-or-random:202506-noexport3

Conversation

@real-or-random
Copy link
Contributor

@real-or-random real-or-random commented Jul 2, 2025

This is less invasive than #1695. The latter might be the right thing in a new library (and then we'd probably not support autotools in the first place), but any semantic change to this code has the potential to create news bug, or at least breakages for downstream users.

This is different from #1677 in that it does not set hidden explicitly. I agree with the comment in #1677 that setting hidden violates the principle of least surprise.

So this similar in spirit to #1674. So I wonder if this should also include
3eef736. I'd say no, fvisibility should then set by the user. But can you, in CMake, set CMAKE_C_VISIBILITY_PRESET from a parent project?

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants