OSDN Git Service

meson: fix condition for io_uring stubs
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 12 Jul 2021 15:18:10 +0000 (17:18 +0200)
committerAlex Bennée <alex.bennee@linaro.org>
Wed, 14 Jul 2021 13:31:48 +0000 (14:31 +0100)
commit3cfafd317c97558b66d93b6f338b95c695ad8d39
tree2fb5f58cfb8fe7ba852aad9c91adfdfdb7408a53
parent0f1ea9c7a602f0349137672f14c4c2a9671ef28e
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>
stubs/meson.build