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/freedreno/common | |
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/freedreno/common')
-rw-r--r-- | src/freedreno/common/meson.build | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/freedreno/common/meson.build b/src/freedreno/common/meson.build index 409fc917798..40bf1511e02 100644 --- a/src/freedreno/common/meson.build +++ b/src/freedreno/common/meson.build @@ -25,9 +25,10 @@ libfreedreno_common = static_library( 'freedreno_uuid.h', ], include_directories : [inc_freedreno, inc_include, inc_src, inc_gallium], - c_args : [c_vis_args, no_override_init_args], + c_args : [no_override_init_args], build_by_default : true, - dependencies: [idep_mesautil] + dependencies: [idep_mesautil], + gnu_symbol_visibility : 'hidden', ) idep_libfreedreno_common = declare_dependency( |