Skip to content

Commit

Permalink
build: refuse to compile with unsupported liburing version
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner committed Nov 4, 2021
1 parent 93be4e5 commit a616a31
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,10 @@ endforeach

if wants_io_uring == true
liburing = dependency('liburing')
have = cc.get_define('IORING_POLL_ADD_MULTI', prefix : '#include <liburing.h>', dependencies: liburing)
conf.set10('HAVE_LIBURING', have)
if cc.has_function('io_uring_prep_poll_add', prefix : '#include <liburing.h>', dependencies: liburing) == false
error('liburing version does not support IORING_POLL_ADD_MULTI')
endif
conf.set10('HAVE_LIBURING', true)
endif

sh = find_program('sh')
Expand Down

0 comments on commit a616a31

Please sign in to comment.