meson: Don't build glsl cache_test when shader cache is disabled

v2: - Use new with_shader_cache variable instead of
      host_machine.system() == 'windows'

Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
Dylan Baker
2018-05-22 15:24:16 -07:00
parent a216aea7af
commit c613861b23

View File

@@ -30,6 +30,7 @@ test(
suite : ['compiler', 'glsl'], suite : ['compiler', 'glsl'],
) )
if with_shader_cache
test( test(
'cache_test', 'cache_test',
executable( executable(
@@ -42,7 +43,7 @@ test(
), ),
suite : ['compiler', 'glsl'], suite : ['compiler', 'glsl'],
) )
endif
test( test(
'general_ir_test', 'general_ir_test',