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>
This commit is contained in:
@@ -31,7 +31,8 @@ libintel_dev = static_library(
|
||||
['intel_dev'],
|
||||
files_libintel_dev,
|
||||
include_directories : [inc_include, inc_src, inc_intel],
|
||||
c_args : [c_vis_args, no_override_init_args],
|
||||
c_args : [no_override_init_args],
|
||||
gnu_symbol_visibility : 'hidden',
|
||||
)
|
||||
|
||||
if with_tests
|
||||
|
||||
Reference in New Issue
Block a user