From f5eafc2dc6a68c9c2c2660dff528de1ecdedf4dc Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Wed, 18 Apr 2018 13:20:28 -0700 Subject: meson: Make shader-cache a trillean instead of boolean So that it can be implicitly disabled on windows, where it doesn't compile. v2: - Use an auto-option rather than automagic. - fix shader_cache check (== -> !=) v4: - Use new with_shader_cache instead of get_option('shader-cache') elsewhere in the meson build Reviewed-by: Eric Anholt --- meson_options.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'meson_options.txt') diff --git a/meson_options.txt b/meson_options.txt index 6cddf33a5c3..1f72faabee8 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -157,8 +157,9 @@ option( ) option( 'shader-cache', - type : 'boolean', - value : true, + type : 'combo', + value : 'auto', + choices : ['auto', 'true', 'false'], description : 'Build with on-disk shader cache support' ) option( -- cgit v1.2.1