From: Dylan Baker Date: Thu, 17 May 2018 20:32:12 +0000 (-0700) Subject: meson: don't look for rt on windows X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=81d44c01eeda9adeb2463b8f6bc610a75770dba7;p=mesa.git meson: don't look for rt on windows v6: - Minor refactor Reviewed-by: Eric Engestrom Acked-by: Kristian H. Kristensen --- diff --git a/meson.build b/meson.build index 824765ec082..10b9c9e9b19 100644 --- a/meson.build +++ b/meson.build @@ -1238,7 +1238,7 @@ elif with_dri_i965 and with_shader_cache endif # Determine whether or not the rt library is needed for time functions -if cc.has_function('clock_gettime') +if host_machine.system() == 'windows' or cc.has_function('clock_gettime') dep_clock = null_dep else dep_clock = cc.find_library('rt')