diff options
author | Bernd Schubert <bschubert@ddn.com> | 2025-03-24 18:46:29 +0100 |
---|---|---|
committer | Bernd Schubert <bernd@bsbernd.com> | 2025-04-28 19:57:39 +0200 |
commit | dde540e413eba6d22a4515659dd72262b8a01af4 (patch) | |
tree | 4c1e449dbd9a838a9fd2d93cf19ee88eb8f117eb /meson.build | |
parent | ef533e2e3fedbd647726416fa7f36ca543ee13ea (diff) | |
download | libfuse-dde540e413eba6d22a4515659dd72262b8a01af4.tar.gz |
fuse: Add ring creation
Signed-off-by: Bernd Schubert <bschubert@ddn.com>
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 26 |
1 files changed, 26 insertions, 0 deletions
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 <liburing.h> +#include <stdio.h> +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 # |