aboutsummaryrefslogtreecommitdiff
path: root/stubs
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2021-07-12 17:18:10 +0200
committerAlex Bennée <alex.bennee@linaro.org>2021-07-14 14:31:48 +0100
commit3cfafd317c97558b66d93b6f338b95c695ad8d39 (patch)
tree2fb5f58cfb8fe7ba852aad9c91adfdfdb7408a53 /stubs
parent0f1ea9c7a602f0349137672f14c4c2a9671ef28e (diff)
downloadqemu-3cfafd317c97558b66d93b6f338b95c695ad8d39.zip
qemu-3cfafd317c97558b66d93b6f338b95c695ad8d39.tar.gz
qemu-3cfafd317c97558b66d93b6f338b95c695ad8d39.tar.bz2
meson: fix condition for io_uring stubs
CONFIG_LINUX_IO_URING is not included in config-host.mak and therefore is not usable in "when" clauses. Check the availability of the library, which matches the condition for the non-stubbed version block/io_uring.c. At this point, the difference between libraries that have config-host.mak entries and those that do not is quite confusing. The remaining ~dozen should be converted in 6.2. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <20210712151810.508249-1-pbonzini@redhat.com> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Diffstat (limited to 'stubs')
-rw-r--r--stubs/meson.build4
1 files changed, 3 insertions, 1 deletions
diff --git a/stubs/meson.build b/stubs/meson.build
index 2e79ff9..d3fa864 100644
--- a/stubs/meson.build
+++ b/stubs/meson.build
@@ -15,7 +15,9 @@ stub_ss.add(files('fdset.c'))
stub_ss.add(files('fw_cfg.c'))
stub_ss.add(files('gdbstub.c'))
stub_ss.add(files('get-vm-name.c'))
-stub_ss.add(when: 'CONFIG_LINUX_IO_URING', if_true: files('io_uring.c'))
+if linux_io_uring.found()
+ stub_ss.add(files('io_uring.c'))
+endif
stub_ss.add(files('iothread-lock.c'))
stub_ss.add(files('isa-bus.c'))
stub_ss.add(files('is-daemonized.c'))