aboutsummaryrefslogtreecommitdiffstats
path: root/src/compiler/nir
diff options
context:
space:
mode:
authorDylan Baker <[email protected]>2020-04-24 13:10:41 -0700
committerMarge Bot <[email protected]>2020-06-01 18:59:18 +0000
commita8e2d79e0228106d11b6ceeb38f4ffb587f0a819 (patch)
tree18eef778716e07f993f568e54920e2242fd0b717 /src/compiler/nir
parentfc7301865e1eabe06d4225af596e7334c4094fe5 (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/compiler/nir')
-rw-r--r--src/compiler/nir/meson.build24
1 files changed, 16 insertions, 8 deletions
diff --git a/src/compiler/nir/meson.build b/src/compiler/nir/meson.build
index 15d73b5aede..20260d0d5e6 100644
--- a/src/compiler/nir/meson.build
+++ b/src/compiler/nir/meson.build
@@ -258,7 +258,8 @@ _libnir = static_library(
nir_opcodes_h, nir_constant_expressions_c, nir_builder_opcodes_h,
vtn_gather_types_c, nir_intrinsics_c, nir_intrinsics_h],
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_compiler, include_directories('../spirv')],
- c_args : [c_vis_args, c_msvc_compat_args, no_override_init_args],
+ c_args : [c_msvc_compat_args, no_override_init_args],
+ gnu_symbol_visibility : 'hidden',
link_with : libcompiler,
build_by_default : false,
)
@@ -283,7 +284,8 @@ if with_tests
executable(
'nir_builder_test',
files('tests/builder_tests.cpp'),
- cpp_args : [cpp_vis_args, cpp_msvc_compat_args],
+ cpp_args : [cpp_msvc_compat_args],
+ gnu_symbol_visibility : 'hidden',
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],
dependencies : [dep_thread, idep_gtest, idep_nir, idep_mesautil],
),
@@ -295,7 +297,8 @@ if with_tests
executable(
'nir_control_flow_test',
files('tests/control_flow_tests.cpp'),
- cpp_args : [cpp_vis_args, cpp_msvc_compat_args],
+ cpp_args : [cpp_msvc_compat_args],
+ gnu_symbol_visibility : 'hidden',
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],
dependencies : [dep_thread, idep_gtest, idep_nir, idep_mesautil],
),
@@ -307,7 +310,8 @@ if with_tests
executable(
'nir_vars_test',
files('tests/vars_tests.cpp'),
- cpp_args : [cpp_vis_args, cpp_msvc_compat_args],
+ cpp_args : [cpp_msvc_compat_args],
+ gnu_symbol_visibility : 'hidden',
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],
dependencies : [dep_thread, idep_gtest, idep_nir, idep_mesautil],
),
@@ -328,7 +332,8 @@ if with_tests
executable(
'negative_equal',
files('tests/negative_equal_tests.cpp'),
- c_args : [c_vis_args, c_msvc_compat_args, no_override_init_args],
+ c_args : [c_msvc_compat_args, no_override_init_args],
+ gnu_symbol_visibility : 'hidden',
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],
dependencies : [dep_thread, idep_gtest, idep_nir, idep_mesautil],
),
@@ -340,7 +345,8 @@ if with_tests
executable(
'comparison_pre',
files('tests/comparison_pre_tests.cpp'),
- c_args : [c_vis_args, c_msvc_compat_args, no_override_init_args],
+ c_args : [c_msvc_compat_args, no_override_init_args],
+ gnu_symbol_visibility : 'hidden',
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],
dependencies : [dep_thread, idep_gtest, idep_nir, idep_mesautil],
),
@@ -352,7 +358,8 @@ if with_tests
executable(
'load_store_vectorizer',
files('tests/load_store_vectorizer_tests.cpp'),
- cpp_args : [cpp_vis_args, cpp_msvc_compat_args],
+ cpp_args : [cpp_msvc_compat_args],
+ gnu_symbol_visibility : 'hidden',
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],
dependencies : [dep_thread, idep_gtest, idep_nir, idep_mesautil],
),
@@ -365,7 +372,8 @@ if with_tests
executable(
'nir_serialize_test',
files('tests/serialize_tests.cpp'),
- cpp_args : [cpp_vis_args, cpp_msvc_compat_args],
+ cpp_args : [cpp_msvc_compat_args],
+ gnu_symbol_visibility : 'hidden',
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],
dependencies : [dep_thread, idep_gtest, idep_nir, idep_mesautil],
),