[Mesa-dev] [PATCH v3 26/48] meson: don't look for rt on windows

Dylan Baker dylan at pnwbakers.com
Tue Aug 7 00:51:06 UTC 2018


---
 meson.build | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/meson.build b/meson.build
index c8a66942cff..39b542730a9 100644
--- a/meson.build
+++ b/meson.build
@@ -1101,7 +1101,9 @@ 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 host_machine.system() == 'windows'
+  dep_clock = null_dep
+elif cc.has_function('clock_gettime')
   dep_clock = null_dep
 else
   dep_clock = cc.find_library('rt')
-- 
2.18.0



More information about the mesa-dev mailing list