Skip to content
Snippets Groups Projects
Commit 42fda19a authored by Tim-Philipp Müller's avatar Tim-Philipp Müller :tropical_fish:
Browse files

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
parent 5c774f08
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment