Commit cbac26c9 authored by Armin Rigo's avatar Armin Rigo

Performance fix, really this time? We need to mark "extern" symbols

as really hidden, even with "-fvisibility=hidden".  Grumble.
parent ddee2a51
......@@ -44,8 +44,10 @@
#ifdef __GNUC__
# define RPY_EXPORTED __attribute__((visibility("default")))
# define RPY_HIDDEN __attribute__((visibility("hidden")))
#else
# define RPY_EXPORTED __declspec(dllexport)
# define RPY_HIDDEN /* nothing */
#endif
#ifndef RPY_EXPORTED_FOR_TESTS
# define RPY_EXPORTED_FOR_TESTS /* nothing */
......
......@@ -38,6 +38,8 @@ def forward_cdecl(ctype, cname, standalone, is_thread_local=False,
if is_exported:
assert not is_thread_local
prefix = "RPY_EXPORTED "
elif standalone:
prefix = "RPY_HIDDEN "
cdecl_str = prefix + cdecl(ctype, cname)
if standalone:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment