meson: fix invalid keyword argument warnings

cc.compiles() doesn't have a 'prefix' argument (yet) and the
prefix has already been prepended to the source code snippets.

https://github.com/mesonbuild/meson/issues/2364
This commit is contained in:
Tim-Philipp Müller 2018-04-20 12:30:24 +01:00
parent 121cfe3575
commit a7aeaca772

View file

@ -220,7 +220,7 @@ posix_timers_src = time_prefix + '''
#error Either _POSIX_TIMERS or CLOCK_REALTIME not defined
#endif
'''
if cc.compiles(posix_timers_src, prefix : time_prefix, name : 'posix timers from time.h')
if cc.compiles(posix_timers_src, name : 'posix timers from time.h')
cdata.set('HAVE_POSIX_TIMERS', 1)
endif
@ -229,7 +229,7 @@ monotonic_clock_src = time_prefix + '''
#error Either _POSIX_MONOTONIC_CLOCK or CLOCK_MONOTONIC not defined
#endif
'''
if cc.compiles(monotonic_clock_src, prefix : time_prefix, name : 'monotonic clock from time.h')
if cc.compiles(monotonic_clock_src, name : 'monotonic clock from time.h')
cdata.set('HAVE_MONOTONIC_CLOCK', 1)
endif