|
From: | Paolo Bonzini |
Subject: | Re: [PATCH 15/24] configure, meson: move libaio check to meson.build |
Date: | Fri, 8 Oct 2021 10:30:12 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.0 |
On 07/10/21 21:24, Richard Henderson wrote:
On 10/7/21 6:08 AM, Paolo Bonzini wrote:+++ b/stubs/meson.build @@ -20,7 +20,9 @@ endif stub_ss.add(files('iothread-lock.c')) stub_ss.add(files('isa-bus.c')) stub_ss.add(files('is-daemonized.c')) -stub_ss.add(when: 'CONFIG_LINUX_AIO', if_true: files('linux-aio.c')) +if libaio.found() + stub_ss.add(if_true: files('linux-aio.c')) +endifThis bit doesn't look quite right, with the if_true.
It looks silly but it works ("when: []" is always-true, just like in python all([]) is true). I'll remove the if_true in v2.
Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |