From dde540e413eba6d22a4515659dd72262b8a01af4 Mon Sep 17 00:00:00 2001 From: Bernd Schubert Date: Mon, 24 Mar 2025 18:46:29 +0100 Subject: fuse: Add ring creation Signed-off-by: Bernd Schubert --- meson.build | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'meson.build') diff --git a/meson.build b/meson.build index 3615a5a..b663109 100644 --- a/meson.build +++ b/meson.build @@ -132,6 +132,32 @@ private_cfg.set('HAVE_STRUCT_STAT_ST_ATIMESPEC', private_cfg.set('USDT_ENABLED', get_option('enable-usdt')) +# Check for liburing with SQE128 support +code = ''' +#include +#include +int main(void) { + struct io_uring ring; + int ret = io_uring_queue_init(1, &ring, 0); +#ifndef IORING_SETUP_SQE128 +#error "No SQE128 support" +#endif + return ret; +}''' + +liburing = get_option('enable-io-uring') ? \ + dependency('liburing', required: false) :\ + dependency('', required: false) +libnuma = dependency('numa', required: false) + +if liburing.found() and libnuma.found() + if cc.links(code, + name: 'liburing linking and SQE128 support', + dependencies: [liburing]) + private_cfg.set('HAVE_URING', true) + endif +endif + # # Compiler configuration # -- cgit v1.2.3