diff options
author | Dylan Baker <[email protected]> | 2020-04-24 13:10:41 -0700 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-06-01 18:59:18 +0000 |
commit | a8e2d79e0228106d11b6ceeb38f4ffb587f0a819 (patch) | |
tree | 18eef778716e07f993f568e54920e2242fd0b717 /src/intel/vulkan | |
parent | fc7301865e1eabe06d4225af596e7334c4094fe5 (diff) |
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 <[email protected]>
Reviewed-by: Eric Engestrom <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4740>
Diffstat (limited to 'src/intel/vulkan')
-rw-r--r-- | src/intel/vulkan/meson.build | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/intel/vulkan/meson.build b/src/intel/vulkan/meson.build index 5884ac05647..1990e0c4e8f 100644 --- a/src/intel/vulkan/meson.build +++ b/src/intel/vulkan/meson.build @@ -89,9 +89,10 @@ foreach g : [['70', ['gen7_cmd_buffer.c']], ['75', ['gen7_cmd_buffer.c']], inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_compiler, inc_intel, inc_vulkan_wsi, ], c_args : [ - c_vis_args, no_override_init_args, c_sse2_args, + no_override_init_args, c_sse2_args, '-DGEN_VERSIONx10=@0@'.format(_gen), ], + gnu_symbol_visibility : 'hidden', dependencies : [ dep_libdrm, dep_valgrind, idep_nir_headers, idep_genxml, idep_vulkan_util_headers, ], @@ -136,7 +137,6 @@ anv_deps = [ idep_xmlconfig_headers, ] anv_flags = [ - c_vis_args, no_override_init_args, c_sse2_args, ] @@ -184,6 +184,7 @@ libanv_common = static_library( inc_vulkan_wsi, inc_util, ], c_args : anv_flags, + gnu_symbol_visibility : 'hidden', dependencies : anv_deps, ) @@ -203,6 +204,7 @@ libvulkan_intel = shared_library( idep_nir, idep_genxml, idep_vulkan_util, idep_mesautil, idep_xmlconfig, ], c_args : anv_flags, + gnu_symbol_visibility : 'hidden', link_args : ['-Wl,--build-id=sha1', ld_args_bsymbolic, ld_args_gc_sections], install : true, ) @@ -237,6 +239,7 @@ if with_tests idep_nir, idep_vulkan_util, idep_mesautil, ], c_args : anv_flags, + gnu_symbol_visibility : 'hidden', ) foreach t : ['block_pool_no_free', 'block_pool_grow_first', |