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
|
||||
test(
|
||||
'avail_vis',
|
||||
'spirv_tests',
|
||||
executable(
|
||||
'avail_vis',
|
||||
files('spirv/tests/avail_vis.cpp'),
|
||||
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],
|
||||
),
|
||||
suite : ['compiler', 'spirv'],
|
||||
protocol : gtest_test_protocol,
|
||||
)
|
||||
|
||||
test(
|
||||
'volatile',
|
||||
executable(
|
||||
'volatile',
|
||||
files('spirv/tests/volatile.cpp'),
|
||||
'spirv_tests',
|
||||
files(
|
||||
'spirv/tests/helpers.h',
|
||||
'spirv/tests/avail_vis.cpp',
|
||||
'spirv/tests/volatile.cpp',
|
||||
),
|
||||
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],
|
||||
|
|
Loading…
Reference in New Issue