meson: don't error out if clock_gettime() was not found
authorTim-Philipp Müller <tim@centricular.com>
Sat, 3 Nov 2018 00:14:30 +0000 (00:14 +0000)
committerOlivier Crête <olivier.crete@collabora.com>
Fri, 14 Dec 2018 19:47:01 +0000 (14:47 -0500)
It's not a requirement, there's a fallback.

meson.build

index 22c9081..c8c1be6 100644 (file)
@@ -60,8 +60,6 @@ if not cc.has_function('clock_gettime')
   librt = cc.find_library('rt', required: false)
   if cc.has_function('clock_gettime', dependencies: librt)
     syslibs += [librt]
-  else
-    error('Could not find right library for clock_gettime()')
   endif
 endif