Skip to content

Commit 43b3fd7

Browse files
committed
GH-47412: [C++] Use inlineshidden visibility in Meson configuration
1 parent 403ba70 commit 43b3fd7

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

cpp/src/arrow/acero/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ arrow_acero_lib = library(
8181
'arrow-acero',
8282
sources: arrow_acero_srcs,
8383
dependencies: [arrow_compute_dep, arrow_dep, threads_dep],
84-
gnu_symbol_visibility: 'hidden',
84+
gnu_symbol_visibility: 'inlineshidden',
8585
)
8686

8787
arrow_acero_dep = declare_dependency(link_with: [arrow_acero_lib])

cpp/src/arrow/flight/meson.build

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ arrow_flight = library(
118118
thread_dep,
119119
],
120120
cpp_args: '-DARROW_FLIGHT_EXPORTING',
121+
gnu_symbol_visibility: 'inlineshidden',
121122
)
122123

123124
arrow_flight_dep = declare_dependency(
@@ -135,7 +136,7 @@ if needs_testing
135136
'test_util.cc',
136137
],
137138
dependencies: [arrow_test_dep, arrow_flight_dep, thread_dep],
138-
gnu_symbol_visibility: 'hidden',
139+
gnu_symbol_visibility: 'inlineshidden',
139140
)
140141

141142
arrow_flight_test_dep = declare_dependency(

cpp/src/arrow/meson.build

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ arrow_lib = library(
426426
include_directories: arrow_includes,
427427
dependencies: arrow_deps,
428428
install: true,
429-
gnu_symbol_visibility: 'hidden',
429+
gnu_symbol_visibility: 'inlineshidden',
430430
cpp_shared_args: ['-DARROW_EXPORTING'],
431431
)
432432

@@ -489,6 +489,7 @@ if needs_compute
489489
sources: arrow_compute_lib_sources,
490490
dependencies: arrow_dep,
491491
install: true,
492+
gnu_symbol_visibility: 'inlineshidden',
492493
cpp_shared_args: ['-DARROW_COMPUTE_EXPORTING'],
493494
)
494495
arrow_compute_dep = declare_dependency(

0 commit comments

Comments
 (0)