mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-04-01 07:16:07 -04:00
darwin: Set rt_dep to empty as it's part of libSystem
Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
This commit is contained in:
parent
d414619cb3
commit
4ee79756e0
1 changed files with 9 additions and 5 deletions
14
meson.build
14
meson.build
|
|
@ -96,11 +96,15 @@ if get_option('libraries')
|
||||||
endif
|
endif
|
||||||
endforeach
|
endforeach
|
||||||
|
|
||||||
rt_dep = []
|
if host_machine.system() == 'darwin'
|
||||||
if not cc.has_function('clock_gettime', prefix: '#include <time.h>')
|
rt_dep = []
|
||||||
rt_dep = cc.find_library('rt')
|
else
|
||||||
if not cc.has_function('clock_gettime', prefix: '#include <time.h>', dependencies: rt_dep, args: cc_args)
|
rt_dep = []
|
||||||
error('clock_gettime not found')
|
if cc.has_function('clock_gettime', prefix: '#include <time.h>')
|
||||||
|
rt_dep = cc.find_library('rt')
|
||||||
|
if not cc.has_function('clock_gettime', prefix: '#include <time.h>', dependencies: rt_dep, args: cc_args)
|
||||||
|
error('clock_gettime not found')
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue