[
https://issues.apache.org/jira/browse/AVRO-4221?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18053493#comment-18053493
]
ASF subversion and git services commented on AVRO-4221:
-------------------------------------------------------
Commit ef48d85fdec6a479d0d6076700e17f8338772234 in avro's branch
refs/heads/main from Stephan Lachnit
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=ef48d85fde ]
AVRO-4221: [C++] Allow using symbol visibility annotations also on non-Windows
platforms (#3600)
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.
> [C++] Allow using symbol visibility annotations on non-Windows platforms
> ------------------------------------------------------------------------
>
> Key: AVRO-4221
> URL: https://issues.apache.org/jira/browse/AVRO-4221
> Project: Apache Avro
> Issue Type: Improvement
> Components: c++
> Affects Versions: 1.12.1, 1.13.0
> Reporter: Stephan Lachnit
> Priority: Major
> Labels: pull-request-available
> Time Spent: 2h 40m
> Remaining Estimate: 0h
>
> 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.
>
> Currently this is not possible.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)