[Mesa-dev] [PATCH v2 28/49] meson: don't look for rt on windows
Dylan Baker
dylan at pnwbakers.com
Tue Jul 10 23:17:56 UTC 2018
---
meson.build | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/meson.build b/meson.build
index 12b4811c953..03b37708ee2 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