From a8e2d79e0228106d11b6ceeb38f4ffb587f0a819 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Fri, 24 Apr 2020 13:10:41 -0700 Subject: 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 Reviewed-by: Eric Engestrom Part-of: --- src/gallium/drivers/r600/meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gallium/drivers/r600') diff --git a/src/gallium/drivers/r600/meson.build b/src/gallium/drivers/r600/meson.build index 0bb31dca20a..880dad590cb 100644 --- a/src/gallium/drivers/r600/meson.build +++ b/src/gallium/drivers/r600/meson.build @@ -195,8 +195,8 @@ endif libr600 = static_library( 'r600', [files_r600, egd_tables_h], - c_args : [c_vis_args, r600_c_args, '-Wstrict-overflow=0'], - cpp_args : [cpp_vis_args], + c_args : [r600_c_args, '-Wstrict-overflow=0'], + gnu_symbol_visibility : 'hidden', include_directories : [ inc_src, inc_mapi, inc_mesa, inc_include, inc_compiler, inc_gallium, inc_gallium_aux, inc_amd_common, inc_gallium_drivers, -- cgit v1.2.3