summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2018-05-17 13:32:12 -0700
committerDylan Baker <dylan@pnwbakers.com>2019-10-10 16:33:04 -0700
commit81d44c01eeda9adeb2463b8f6bc610a75770dba7 (patch)
tree54a6e8142a2e691328a691a0390de5208d8e01da /meson.build
parente3f5c3232cbfd724682d3df27d83587383969d86 (diff)
meson: don't look for rt on windows
v6: - Minor refactor Reviewed-by: Eric Engestrom <eric.engestrom@intel.com> Acked-by: Kristian H. Kristensen <hoegsberg@google.com>
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build2
1 files changed, 1 insertions, 1 deletions
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')