meson: use gnu_symbol_visibility argument
This uses a meson builtin to handle -fvisibility=hidden. This is nice because we don't need to track which languages are used, if C++ is suddenly added meson just does the right thing. Acked-by: Matt Turner <mattst88@gmail.com> Reviewed-by: Eric Engestrom <eric@engestrom.ch> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4740>
This commit is contained in:
@@ -24,7 +24,8 @@ if with_shader_cache
|
||||
executable(
|
||||
'cache_test',
|
||||
'cache_test.c',
|
||||
c_args : [c_vis_args, c_msvc_compat_args, no_override_init_args],
|
||||
c_args : [c_msvc_compat_args, no_override_init_args],
|
||||
gnu_symbol_visibility : 'hidden',
|
||||
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_glsl],
|
||||
link_with : [libglsl],
|
||||
dependencies : [dep_clock, dep_thread],
|
||||
@@ -41,7 +42,8 @@ test(
|
||||
'invalidate_locations_test.cpp', 'general_ir_test.cpp',
|
||||
'lower_int64_test.cpp', 'opt_add_neg_to_sub_test.cpp',
|
||||
'varyings_test.cpp', ir_expression_operation_h],
|
||||
cpp_args : [cpp_vis_args, cpp_msvc_compat_args],
|
||||
cpp_args : [cpp_msvc_compat_args],
|
||||
gnu_symbol_visibility : 'hidden',
|
||||
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_glsl],
|
||||
link_with : [libglsl, libglsl_standalone, libglsl_util],
|
||||
dependencies : [dep_clock, dep_thread, idep_gtest],
|
||||
@@ -56,7 +58,8 @@ test(
|
||||
['copy_constant_to_storage_tests.cpp', 'set_uniform_initializer_tests.cpp',
|
||||
'uniform_initializer_utils.cpp', 'uniform_initializer_utils.h',
|
||||
ir_expression_operation_h],
|
||||
cpp_args : [cpp_vis_args, cpp_msvc_compat_args],
|
||||
cpp_args : [cpp_msvc_compat_args],
|
||||
gnu_symbol_visibility : 'hidden',
|
||||
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_glsl],
|
||||
link_with : [libglsl, libglsl_util],
|
||||
dependencies : [dep_thread, idep_gtest],
|
||||
@@ -69,7 +72,8 @@ test(
|
||||
executable(
|
||||
'sampler_types_test',
|
||||
['sampler_types_test.cpp', ir_expression_operation_h],
|
||||
cpp_args : [cpp_vis_args, cpp_msvc_compat_args],
|
||||
cpp_args : [cpp_msvc_compat_args],
|
||||
gnu_symbol_visibility : 'hidden',
|
||||
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_glsl],
|
||||
link_with : [libglsl, libglsl_util],
|
||||
dependencies : [dep_thread, idep_gtest],
|
||||
@@ -82,7 +86,8 @@ test(
|
||||
executable(
|
||||
'list_iterators',
|
||||
['list_iterators.cpp'],
|
||||
cpp_args : [cpp_vis_args, cpp_msvc_compat_args],
|
||||
cpp_args : [cpp_msvc_compat_args],
|
||||
gnu_symbol_visibility : 'hidden',
|
||||
include_directories : [inc_include, inc_src, inc_glsl],
|
||||
link_with : [libglsl, libglsl_util],
|
||||
dependencies : [dep_thread, idep_gtest],
|
||||
|
Reference in New Issue
Block a user