qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 15/24] configure, meson: move libaio check to meson.build


From: Marc-André Lureau
Subject: Re: [PATCH 15/24] configure, meson: move libaio check to meson.build
Date: Fri, 8 Oct 2021 12:47:24 +0400

Hi

On Fri, Oct 8, 2021 at 12:32 PM Paolo Bonzini <pbonzini@redhat.com> wrote:
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'))
>> +endif
>
> This 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.


and why not  keep the one-liner version?:
stub_ss.add(when: libaio, if_true: files('linux-aio.c'))


--
Marc-André Lureau

reply via email to

[Prev in Thread] Current Thread [Next in Thread]