diff options
author | Dylan Baker <dylan.c.baker@intel.com> | 2020-04-24 13:10:41 -0700 |
---|---|---|
committer | Marge Bot <eric+marge@anholt.net> | 2020-06-01 18:59:18 +0000 |
commit | a8e2d79e0228106d11b6ceeb38f4ffb587f0a819 (patch) | |
tree | 18eef778716e07f993f568e54920e2242fd0b717 /src/drm-shim | |
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 <mattst88@gmail.com>
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4740>
Diffstat (limited to 'src/drm-shim')
-rw-r--r-- | src/drm-shim/meson.build | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drm-shim/meson.build b/src/drm-shim/meson.build index b1f238c27ec..2a7ea000a61 100644 --- a/src/drm-shim/meson.build +++ b/src/drm-shim/meson.build @@ -27,7 +27,7 @@ drm_shim = static_library( ], include_directories: [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux], dependencies: [dep_libdrm, idep_mesautil, dep_dl], - c_args : [c_vis_args], + gnu_symbol_visibility : 'hidden', override_options : ['c_std=gnu99'], ) dep_drm_shim = declare_dependency( |