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/isl | |
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/isl')
-rw-r--r-- | src/intel/isl/meson.build | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/src/intel/isl/meson.build b/src/intel/isl/meson.build index e512169e6cb..66f19039ce2 100644 --- a/src/intel/isl/meson.build +++ b/src/intel/isl/meson.build @@ -63,8 +63,11 @@ foreach g : [['40', isl_gen4_files], ['50', []], ['60', isl_gen6_files], 'isl_gen@0@'.format(_gen), [g[1], isl_gen_files, gen_xml_pack], include_directories : [inc_include, inc_src, inc_gallium, inc_intel], - c_args : [c_vis_args, no_override_init_args, - '-DGEN_VERSIONx10=@0@'.format(_gen)], + c_args : [ + no_override_init_args, + '-DGEN_VERSIONx10=@0@'.format(_gen) + ], + gnu_symbol_visibility : 'hidden', ) endforeach @@ -89,7 +92,8 @@ isl_tiled_memcpy = static_library( include_directories : [ inc_include, inc_src, inc_mesa, inc_gallium, inc_intel, ], - c_args : [c_vis_args, no_override_init_args, '-msse2'], + c_args : [no_override_init_args, '-msse2'], + gnu_symbol_visibility : 'hidden', extra_files : ['isl_tiled_memcpy.c'] ) @@ -101,7 +105,8 @@ if with_sse41 inc_include, inc_src, inc_mesa, inc_gallium, inc_intel, ], link_args : ['-Wl,--exclude-libs=ALL'], - c_args : [c_vis_args, no_override_init_args, '-msse2', sse41_args], + c_args : [no_override_init_args, '-msse2', sse41_args], + gnu_symbol_visibility : 'hidden', extra_files : ['isl_tiled_memcpy.c'] ) else @@ -124,7 +129,8 @@ libisl = static_library( [libisl_files, isl_format_layout_c, genX_bits_h], include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_intel], link_with : [isl_gen_libs, isl_tiled_memcpy, isl_tiled_memcpy_sse41], - c_args : [c_vis_args, no_override_init_args], + c_args : [no_override_init_args], + gnu_symbol_visibility : 'hidden', ) if with_tests |