summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/tests
diff options
context:
space:
mode:
authorDylan Baker <[email protected]>2018-05-22 15:24:16 -0700
committerDylan Baker <[email protected]>2019-05-03 10:58:31 -0700
commitc613861b23312438568a4a77dc48e383d45ef51e (patch)
treeb7e45b209a234c4f1ddc89f8cd33ef6e2e251c39 /src/compiler/glsl/tests
parenta216aea7afeee2b4d3e8641b15b057a821c46098 (diff)
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 <[email protected]>
Diffstat (limited to 'src/compiler/glsl/tests')
-rw-r--r--src/compiler/glsl/tests/meson.build25
1 files changed, 13 insertions, 12 deletions
diff --git a/src/compiler/glsl/tests/meson.build b/src/compiler/glsl/tests/meson.build
index 02f3355c43c..a7a0a5b7c7f 100644
--- a/src/compiler/glsl/tests/meson.build
+++ b/src/compiler/glsl/tests/meson.build
@@ -30,19 +30,20 @@ test(
suite : ['compiler', 'glsl'],
)
-test(
- 'cache_test',
- executable(
+if with_shader_cache
+ test(
'cache_test',
- 'cache_test.c',
- c_args : [c_vis_args, c_msvc_compat_args, no_override_init_args],
- include_directories : [inc_common, inc_glsl],
- link_with : [libglsl],
- dependencies : [dep_clock, dep_thread],
- ),
- suite : ['compiler', 'glsl'],
-)
-
+ executable(
+ 'cache_test',
+ 'cache_test.c',
+ c_args : [c_vis_args, c_msvc_compat_args, no_override_init_args],
+ include_directories : [inc_common, inc_glsl],
+ link_with : [libglsl],
+ dependencies : [dep_clock, dep_thread],
+ ),
+ suite : ['compiler', 'glsl'],
+ )
+endif
test(
'general_ir_test',