spirv: Use a single binary for gtests
Less artifacts and less time running linker. Also set the guideline for future tests to not create new binaries for extra gtests. Reviewed-by: Dylan Baker <dylan@pnwbakers.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13415>
This commit is contained in:
parent
39f2594531
commit
8cb7d6f81b
|
@ -71,24 +71,14 @@ spirv2nir = executable(
|
||||||
|
|
||||||
if with_tests
|
if with_tests
|
||||||
test(
|
test(
|
||||||
'avail_vis',
|
'spirv_tests',
|
||||||
executable(
|
executable(
|
||||||
'avail_vis',
|
'spirv_tests',
|
||||||
files('spirv/tests/avail_vis.cpp'),
|
files(
|
||||||
c_args : [c_msvc_compat_args, no_override_init_args],
|
'spirv/tests/helpers.h',
|
||||||
gnu_symbol_visibility : 'hidden',
|
'spirv/tests/avail_vis.cpp',
|
||||||
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],
|
'spirv/tests/volatile.cpp',
|
||||||
dependencies : [dep_thread, idep_gtest, idep_nir, idep_mesautil],
|
),
|
||||||
),
|
|
||||||
suite : ['compiler', 'spirv'],
|
|
||||||
protocol : gtest_test_protocol,
|
|
||||||
)
|
|
||||||
|
|
||||||
test(
|
|
||||||
'volatile',
|
|
||||||
executable(
|
|
||||||
'volatile',
|
|
||||||
files('spirv/tests/volatile.cpp'),
|
|
||||||
c_args : [c_msvc_compat_args, no_override_init_args],
|
c_args : [c_msvc_compat_args, no_override_init_args],
|
||||||
gnu_symbol_visibility : 'hidden',
|
gnu_symbol_visibility : 'hidden',
|
||||||
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],
|
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],
|
||||||
|
|
Loading…
Reference in New Issue