Skip to content

Conversation

@stephanlachnit
Copy link
Contributor

Backport of #3600 for the 1.12 branch.

@github-actions github-actions bot added the C++ Pull Requests for C++ binding label Dec 17, 2025
@stephanlachnit stephanlachnit force-pushed the b-fix-symbol-visibility branch from ae5f445 to cca80d4 Compare December 18, 2025 14:05
…latforms

In GCC and clang the symbol visibility behavior of MSVC can be mirror using `-fvisibility=hidden`.
This allows to more easily test that symbol visbility annotations work correctly and can potentially lead to smaller binaries.
The default behavior on non-Windows platforms is not changed with this commit.

See also https://gcc.gnu.org/wiki/Visibility

Also fixes a tiny mistake where the _WIN32 macro was used to silence a MSVC warning where the _MSC_VER macro should have been used instead.
@stephanlachnit stephanlachnit force-pushed the b-fix-symbol-visibility branch from cca80d4 to 6385722 Compare December 22, 2025 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C++ Pull Requests for C++ binding

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant