From 81d44c01eeda9adeb2463b8f6bc610a75770dba7 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Thu, 17 May 2018 13:32:12 -0700 Subject: [PATCH] meson: don't look for rt on windows v6: - Minor refactor Reviewed-by: Eric Engestrom Acked-by: Kristian H. Kristensen --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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') -- 2.30.2