[Mesa-dev] [PATCH 4/6] meson: osx doesn't have librt, so don't require it

Dylan Baker dylan at pnwbakers.com
Mon Jan 29 19:18:31 UTC 2018


Quoting Jon Turney (2018-01-28 06:24:11)
> ---
>  meson.build | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/meson.build b/meson.build
> index 7e194a9f10d..8fdbaa8b8d8 100644
> --- a/meson.build
> +++ b/meson.build
> @@ -935,7 +935,7 @@ elif with_dri_i965 and get_option('shader-cache')
>  endif
>  
>  # Determine whether or not the rt library is needed for time functions
> -if cc.has_function('clock_gettime')
> +if cc.has_function('clock_gettime') or (host_machine.system() == 'darwin')

We don't use parens around conditionals except to group them logically, can we
drop the extra parens here?

>    dep_clock = []
>  else
>    dep_clock = cc.find_library('rt')
> -- 
> 2.15.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: 488 bytes
Desc: signature
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180129/204f8846/attachment-0001.sig>


More information about the mesa-dev mailing list