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/tools | |
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/tools')
-rw-r--r-- | src/intel/tools/meson.build | 29 |
1 files changed, 19 insertions, 10 deletions
diff --git a/src/intel/tools/meson.build b/src/intel/tools/meson.build index 59d63576d8e..063e7373ab3 100644 --- a/src/intel/tools/meson.build +++ b/src/intel/tools/meson.build @@ -24,7 +24,8 @@ libaub = static_library( include_directories : [inc_include, inc_src, inc_intel], dependencies : idep_mesautil, link_with : [libintel_common, libintel_dev], - c_args : [c_vis_args, no_override_init_args], + c_args : [no_override_init_args], + gnu_symbol_visibility : 'hidden', install : false ) @@ -34,7 +35,8 @@ aubinator = executable( dependencies : [idep_mesautil, dep_expat, dep_zlib, dep_dl, dep_thread, dep_m], include_directories : [inc_include, inc_src, inc_intel], link_with : [libintel_common, libintel_compiler, libintel_dev, libaub], - c_args : [c_vis_args, no_override_init_args], + c_args : [no_override_init_args], + gnu_symbol_visibility : 'hidden', install : true ) @@ -44,7 +46,8 @@ aubinator_error_decode = executable( dependencies : [idep_mesautil, dep_zlib, dep_thread], include_directories : [inc_include, inc_src, inc_intel], link_with : [libintel_common, libintel_compiler, libintel_dev], - c_args : [c_vis_args, no_override_init_args], + c_args : [no_override_init_args], + gnu_symbol_visibility : 'hidden', install : true ) @@ -54,7 +57,8 @@ i965_disasm = executable( dependencies : [idep_mesautil, dep_thread], include_directories : [inc_include, inc_src, inc_mesa, inc_intel], link_with : [libintel_common, libintel_compiler, libintel_dev], - c_args : [c_vis_args, no_override_init_args], + c_args : [no_override_init_args], + gnu_symbol_visibility : 'hidden', install : true ) @@ -64,7 +68,8 @@ error2aub = executable( dependencies : [dep_zlib, dep_dl, dep_thread, dep_m], include_directories : [inc_include, inc_src, inc_intel], link_with : [libintel_dev], - c_args : [c_vis_args, no_override_init_args], + c_args : [no_override_init_args], + gnu_symbol_visibility : 'hidden', install : true ) @@ -91,7 +96,8 @@ libintel_sanitize_gpu = shared_library( dependencies : [idep_mesautil, dep_dl, dep_thread], include_directories : [inc_include, inc_src, inc_intel], link_with : libintel_common, - c_args : [c_vis_args, no_override_init_args, c_sse2_args], + c_args : [no_override_init_args, c_sse2_args], + gnu_symbol_visibility : 'hidden', install_dir : get_option('libexecdir'), install : true ) @@ -113,7 +119,8 @@ libintel_dump_gpu = shared_library( dependencies : dep_dl, include_directories : [inc_include, inc_src, inc_intel], link_with : libintel_dev, - c_args : [c_vis_args, no_override_init_args], + c_args : [no_override_init_args], + gnu_symbol_visibility : 'hidden', install_dir : get_option('libexecdir'), install : true ) @@ -133,7 +140,7 @@ if with_tools.contains('drm-shim') include_directories: [inc_include, inc_src, inc_intel], link_with: libintel_dev, dependencies: [dep_libdrm, dep_drm_shim, idep_mesautil, idep_libintel_common], - c_args : c_vis_args, + gnu_symbol_visibility : 'hidden', install : true, ) endif @@ -147,7 +154,8 @@ if with_tools.contains('intel-ui') dependencies : [idep_mesautil, dep_zlib, dep_dl, dep_thread, dep_m, libintel_imgui_gtk_dep], include_directories : [inc_include, inc_src, inc_intel], link_with : [libintel_common, libintel_compiler, libintel_dev, libaub], - c_args : [c_vis_args, no_override_init_args], + c_args : [no_override_init_args], + gnu_symbol_visibility : 'hidden', cpp_args : ['-fpermissive', '-Wno-parentheses', '-Wno-class-memaccess'], install : true ) @@ -176,7 +184,8 @@ i965_asm = executable( dependencies : [idep_mesautil, dep_thread], include_directories : [inc_include, inc_src, inc_mesa, inc_intel], link_with : [libintel_common, libintel_compiler, libintel_dev], - c_args : [c_vis_args, no_override_init_args], + c_args : [no_override_init_args], + gnu_symbol_visibility : 'hidden', install : true ) |