[Mesa-dev] [PATCH 14/48] meson: don't build shader cache on windows

Dylan Baker dylan at pnwbakers.com
Tue Jun 12 16:28:23 UTC 2018


Quoting Eric Engestrom (2018-06-12 04:30:47)
> On Monday, 2018-06-11 15:55:41 -0700, Dylan Baker wrote:
> > ---
> >  meson.build | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/meson.build b/meson.build
> > index 4247d195bc1..ed63276b63e 100644
> > --- a/meson.build
> > +++ b/meson.build
> > @@ -699,7 +699,7 @@ if get_option('buildtype') == 'debug'
> >    pre_args += '-DDEBUG'
> >  endif
> >  
> > -if get_option('shader-cache')
> > +if get_option('shader-cache') and host_machine.system() != 'windows'
> 
> This means that shader-cache=true on windows will be silently ignored,
> not very intuitive.
> How about auto/true/false, with auto = `host_machine.system() != 'windows'`?
> That way, patch 36/48 (meson: Don't build glsl cache_test for windows)
> can be guarded by `with_shader_cache` instead, which means it will be
> automatically tested on windows if/when turned on.

Yup, that seems like a better idea. Fixed locally.

> 
> >    pre_args += '-DENABLE_SHADER_CACHE'
> >  elif with_amd_vk
> >    error('Radv requires shader cache support')
> > -- 
> > 2.17.1
> > 
> > _______________________________________________
> > mesa-dev mailing list
> > mesa-dev at lists.freedesktop.org
> > https://lists.freedesktop.org/mailman/listinfo/mesa-dev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: signature
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180612/4f1b130b/attachment.sig>


More information about the mesa-dev mailing list