Skip to content

Commit 8422b24

Browse files
committed
try public symbols on macOS
1 parent ca8b36b commit 8422b24

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

python/pyarrow/meson.build

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,8 @@ if needs_parquet
191191
endif
192192
endif
193193

194+
gnu_symbol_visibility = host_machine.system() == 'darwin' ? 'default' : 'inlineshidden'
195+
194196
arrow_python_lib = shared_library(
195197
'arrow_python',
196198
sources: pyarrow_srcs,
@@ -203,7 +205,7 @@ arrow_python_lib = shared_library(
203205
cpp_args: ['-DARROW_PYTHON_EXPORTING'],
204206
install: true,
205207
install_dir: py.get_install_dir() / 'pyarrow',
206-
gnu_symbol_visibility: 'inlineshidden',
208+
gnu_symbol_visibility: gnu_symbol_visibility,
207209
override_options: ['b_lundef=false'],
208210
)
209211
pyarrow_lib_dep = declare_dependency(link_with: [arrow_python_lib])
@@ -217,7 +219,7 @@ if needs_flight
217219
cpp_args: ['-DARROW_PYFLIGHT_EXPORTING'],
218220
install: true,
219221
install_dir: py.get_install_dir() / 'pyarrow',
220-
gnu_symbol_visibility: 'inlineshidden',
222+
gnu_symbol_visibility: gnu_symbol_visibility,
221223
override_options: ['b_lundef=false'],
222224
)
223225

@@ -237,7 +239,7 @@ if needs_parquet_encryption
237239
cpp_args: ['-DARROW_PYTHON_PARQUET_ENCRYPTION_EXPORTING'],
238240
install: true,
239241
install_dir: py.get_install_dir() / 'pyarrow',
240-
gnu_symbol_visibility: 'inlineshidden',
242+
gnu_symbol_visibility: gnu_symbol_visibility,
241243
override_options: ['b_lundef=false'],
242244
)
243245

@@ -276,7 +278,7 @@ foreach key, val : cython_modules
276278
override_options: ['cython_language=cpp'],
277279
install: true,
278280
subdir: 'pyarrow',
279-
gnu_symbol_visibility: 'inlineshidden',
281+
gnu_symbol_visibility: gnu_symbol_visibility,
280282
)
281283

282284
install_data(cython_mod_name, install_dir: py.get_install_dir() / 'pyarrow')

0 commit comments

Comments
 (0)